A federal judge spent hours questioning and reprimanding Texas officials over an escalating crisis in the state’s foster care system, as hundreds of children are still sleeping in offices