North Carolina judges have declared the state’s latest photo voter identification law unconstitutional on Friday, agreeing with the notion that it shows a racial bias.

In a split verdict, two of the three trial judges declared the December 2018 law as unconstitutional, saying that the law intentionally discriminates against Black voters, violating their equal protection. This verdict came even though the law was designed to implement a photo voter ID mandate added to the North Carolina Constitution in a referendum.

The law “was motivated at least in part by an unconstitutional intent to target African American voters,” the Associated Press quoted Superior Court Judges Michael O’Foghludha and Vince Rozier. The judges wrote a 100-page majority opinion.

“Other, less restrictive voter ID laws would have sufficed to achieve the legitimate nonracial purposes of implementing the constitutional amendment requiring voter ID, deterring fraud, or enhancing voter confidence,” the majority opinion said.

The majority decision, which followed a three-week trial in April, is now likely to go to a state appeals court. The same court had blocked the law’s enforcement last year while the case was heard. The law remains unenforceable with this ruling.

With a similar lawsuit in federal court set to go to trial this January and another state court lawsuit now on appeal, it is looking more unlikely that a voter ID mandate for in-person and absentee balloting will happen in the 2022 elections.

The ruling reflects “how the state’s Republican-controlled legislature undeniably implemented this legislation to maintain its power by targeting voters of color,” AP quoted Allison Riggs, the plaintiffs’ lead attorney, as saying.

Republican legislative leaders are yet to respond to the ruling. GOP legislative leaders have tried for a decade to require photo IDs to cast ballots.

Republicans have said voter ID laws are needed to build public confidence in elections and to prevent voter fraud, which remains rare nationwide. But many Democrats see the mandates as attempts at voter suppression.

In July 2016, a federal appeals court struck down several portions of a 2013 North Carolina elections law that included a voter ID mandate, saying GOP lawmakers had written them with “almost surgical precision” to discourage voting by Black voters, who tend to support Democrats.

Lawyers for the voters who sued over the 2018 law said it suffered the same racial defects as the 2013 law — following a long effort by North Carolina elected officials to weaken African American voting as a way to retain control of the General Assembly. The 2013 law was carried out briefly in the 2016 primary elections.

GOP legislative leaders and their attorneys disagreed, saying the latest ID rules were approved with substantial Democratic support and improved to retain ballot access while ensuring only legal citizens can vote.

The categories of qualifying IDs were greatly expanded compared to the 2013 law to include college student and government-employee IDs. Free IDs also are available from county elections boards or at early-voting sites, and people without IDs can still vote if they fill out a form at the voting precinct.

In a dissenting opinion, Judge Nathaniel Poovey wrote that passage of the voter ID law falls in line with the state constitution, citing its support from several Black legislators and the citizens voting for the constitutional referendum.

“Competence evidence before this three-judge panel does not suggest our legislature enacted this law with a racially discriminatory intent,” Poovey wrote in his dissent note.

But the majority on the panel decided that the changes didn’t eliminate fully the racial bias and permanently blocked enforcement of the ID law.

About three dozen states have laws requesting or requiring voters to show some form of identification at the polls, and about half of these states want photo ID only, according to the National Conference of State Legislatures.

A provision contained in a sweeping federal overhaul of elections pushed this year by congressional Democrats would effectively neuter state voter ID laws by allowing people without an ID to sign a form at the polls instead.

(With inputs from the Associated Press)