WASHINGTON (AP) — The Supreme Court on Monday ruled that states can count ballots that arrive after Election Day, a persistent target of President Donald Trump.

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.