The Republican candidate for a state supreme court race in North Carolina has conceded the election after more than six months of contesting the results.

For months, Jefferson Griffin, currently a judge on the North Carolina court of appeals, had fought in courts to try and overturn his 734-vote loss to Allison Riggs in November. Last month, the North Carolina supreme court said that more than 1,300 voters who had successfully cast ballots had to prove their eligibility or else they would be thrown out. On Monday, a federal judge blocked that ruling and ordered state election officials to certify the election.

The prolonged legal contest has raised significant alarm among legal observers because it could lay out a playbook to try to overturn election results after voting has concluded.