RALEIGH, N.C. — The criticism could not have been much harsher: North Carolina’s Republican-led legislature had set out to undo 50 years of progress with a Tea Party-inspired “playground of extremist fantasies” that include tax giveaways to its richest residents and election law changes that make it harder for residents to register and vote.

But the author of that scathing assessment in The Huffington Post last week was the North Carolina attorney general, Roy Cooper, a Democrat and the man whose job it is to enforce those laws, including the voting changes that have already become the subject of a federal lawsuit.

His remarks brought a sharp rebuke from Gov. Pat McCrory and accusations from Republicans that Mr. Cooper is letting his ambition — he is widely expected to run against Mr. McCrory, a Republican, in 2016 — get in the way of his duties as attorney general.

And the dispute between the two is a reminder of how deep and bitter the divide remains in a state still making sense of the fiercely conservative, boldly activist legislative session that ended in July. In a state long seen as a relatively moderate outlier in the South, the session was the first with a Republican governor and legislature since Reconstruction.