A federal appeals court has upheld a ruling that in nearly half of U.S. states halted President Donald Trump’s executive order to create a federal list of eligible voters and limit delivery of mail ballots only to people on that list.

The ruling Saturday by judges of the 1st U.S. Circuit Court of Appeals rejected the Trump administration’s effort to move forward with the mail-in voting restrictions in 23 U.S. states that sued ahead of November’s midterm elections.