Thousands of migrant children could be held long-term