The ruling came hours after some shelters were directed to prepare children to be sent back to Guatemala. A hearing was scheduled for Sunday afternoon.