A federal judge on Thursday halted President Donald Trump’s executive order that sought to create a federal voter list and limit who can receive a mail ballot.

U.S. District Court Judge Indira Talwani sided with a coalition of nearly two dozen states that challenged the Republican president’s order in granting a summary judgment. Her ruling applies to this year’s midterm election cycle.