President Trump's executive order placing new limits on mail-in ballots has survived the first legal challenge that made it to the Supreme Court.