In a 5-to-4 ruling, the court overturned an appellate decision and said that the administration could tap the money while litigation over the matter proceeds. But that will most likely take many months or longer, allowing Mr. Trump to move ahead before the case returns to the Supreme Court after further proceedings in the appeals court.