U.S. President Donald Trump’s initial attempt to clamp down for security reasons on immigration from seven Muslim-majority countries and on refugees snarled to a halt amid a judicial backlash and chaos at airports.