A federal agency has closed the last of five temporary emergency shelters in Texas that housed unaccompanied illegal immigrant children.