The justices also upheld state laws that count mail ballots that arrive after Election Day, an unexpected rebuff of Trump’s ...