Mailed ballots that arrive on time but in envelopes without dates handwritten by Pennsylvania voters should be counted, a federal judge ruled Tuesday in a case that’s likely to end up before the U.S. Supreme Court.

The ruling by U.S. District Judge Susan Paradise Baxter is expected to be appealed to the 3rd U.S. Circuit Court of Appeals before it ultimately reaches the high court, whose final word on what are often referred to as “undated ballots” may help determine the outcome of the 2024 presidential race and other key upcoming elections in the swing state.