Lawsuits challenging changes to North Carolina’s election law failed to show it hampered the capacities of minority voters to exert political power, a federal judge ruled Monday in dismissing the cases.

U.S. District Judge Thomas Schroeder ruled against the U.S. Justice Department, the North Carolina NAACP chapter and named voters. They sued alleging the law was passed to discriminate against poor and minority voters in violation of the Constitution and U.S. Voting Rights Act.

While North Carolina had a sordid history of freezing black voters out of the political process, the plaintiffs didn’t show that the law hampered the ability of minority voters to exercise electoral politics, Schroeder said.

The plaintiffs “failed to show that such disparities will have materially adverse effects on the capacities of minority voters to cast a ballot and effectively exercise the electoral franchise” as a result of the 2013 state law, Schroeder wrote. That debate was induced more difficult after black voter turnout increased in 2014, he wrote.

“There is significant, shameful past discrimination. In North Carolina’s recent history, however, surely for the last quarter century, there is little official discrimination to consider, ” Schroeder wrote.

The law’s most public feature is that it requires voters who appear in person to cast ballots to indicate an accepted kind of photo identification like a driver’s license, a passport or a military ID. The statute also eradicated same-day voter registration and objective out-of-precinct voting. The number of early-voting days was cut while the early-voting hours available stayed stable.

Same-day registration and out-of-precinct provisional voting will end after the June 7 primary elections for North Carolina’s congressional seats.

Much of such discussions during the trial focused on whether voter hoax exists in North Carolina. That was one of the debates lawmakers used in including the photo ID requirement, which took effect during last month’s primary elections.

Advocates who filed the lawsuits condemned the decision.

“This is just one step in a legal combat that is going to continue in the courts, ” said Penda Hair, an attorney representative of NAACP. The law “targets the provisions that once induced North Carolina among the states with the highest turnout in the nation. This progress was especially clear among African-American and Latino voters, who came to rely on measures like early voting, same-day registration and out-of-precinct provisional ballots to ensure their voices were heard.

Gov. Pat McCrory, a Republican seeking re-election this year, focused on the voter ID provision of the law in praising the ruling. McCrory was a defendant in one of the lawsuits.

“Common practises like boarding an airplane and purchasing Sudafed require photo ID and thankfully a federal court has ensured our citizens will have the same protection for their basic right to vote, ” McCrory said in a prepared statement.