The majority of the children were unaccompanied by a parent or legal guardian, officials said. Most of the migrants were from Guatemala.