Donald Trump has signed an executive order to prepare a detention facility at Guantanamo Bay for as many as 30,000 migrants.