More than 5,000 of the unaccompanied migrant children in U.S. custody were stranded in Border Patrol facilities not designed for long-term custody.