A U.S. judge has blocked President Donald Trump's latest bid to impose restrictions on citizens from several countries entering the United States, which had been set to take effect this week.