The 7-4 ruling won't take effect until Oct. 14, as the court sought to give the Trump administration time to appeal to the Supreme Court.