The justices took just hours to reject Trump’s bid to meddle in the election.