The Supreme Court, in a 5-4 decision, upheld state laws that allow the counting of late-arriving mail-in ballots even if they were postmarked by Election Day.

In a surprise decision across ideological lines, the Supreme Court is saving a grace period for ballots received after Election Day.

The court’s ruling means state laws that allow ballots to be received after Election Day can stand.