A federal judge in New York has issued an emergency order temporarily barring the deportation of people from countries included in Donald Trump's travel ban.