The Supreme Court restored a federal appeals court ruling that allows the counting of ballots that were received on time but missing a handwritten date on the return envelope, potentially impacting dozens of expected close races in upcoming midterm elections.