A Michigan judge on Tuesday dismissed a lawsuit that tried to use the 14th Amendment’s “insurrectionist ban” to remove Donald Trump from the state’s 2024 ballot.

The judge separately ruled that Michigan’s secretary of state doesn’t have the power under state law to determine Trump’s eligibility for office based on the constitutional amendment.

The rulings mark a major victory for the former president, who has a commanding lead in the 2024 Republican presidential primary race, according to recent polling.

They come one week after the Minnesota Supreme Court rejected a related anti-Trump case there. A similar challenge is still pending in Colorado, where a ruling is expected by the end of this week.