The decision rejected a Republican-led attack on laws in more than half the states and the District of Columbia that permit mailed ballots to arrive and be counted some number of days after the election, provided they are postmarked by Election Day.