The Trump administration has ordered the detention of as many as 30,000 undocumented migrants in what is described as a “legal black hole” at the Guantánamo Bay, Cuba US naval base.