The Supreme Court issued a ruling on late-arriving mail ballot laws, which could have significant effects on the midterm elections.

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.