BOSTON (AP) — 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, who was nominated by Democratic President Barack Obama, 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.Plaintiffs argued in two lawsuits, both filed in federal court in Boston, that Trump’s order should be found unconstitutional because the states and Congress, not the president, have the power to set election rules. The judge agreed, noting in her ruling that the provisions of Trump’s order “unconstitutionally violate the separation of powers.”It was the second ruling in as many days against executive orders Trump has signed seeking oversight of the nation’s elections. A separate ruling Wednesday prohibited an executive order he had signed last year that would have required people to show documents proving their citizenship when registering to vote.

The administration, in its motions to dismiss the lawsuits challenging the order seeking to establish a federal voter list, argued that the motions are premature and that plaintiffs lacked the legal basis to bring their claim based on the Administrative Procedure Act, which governs how federal agencies develop and issue regulations.