The ruling, granting a request for a temporary restraining order by the state of Hawaii and Ismail Elshikh, stalls the president’s second attempt to suspend admission of nearly all refugees for 120 days and to restrict visas for nationals from Iran, Libya, Somalia, Sudan, Syria and Yemen for 90 days.