Trump has signed an executive order to prepare a detention facility at Guantánamo Bay that he said could be used to hold up to 30,000 immigrants deported from the US.