North Carolina Attorney General Roy Cooper on Monday responded to Republican Governor Pat McCrory's decision to sue the federal government rather than repeal a law that targets the LGBT community.

McCrory's lawsuit was met with a countersuit by the Department of Justice.

(Related: North Carolina Gov. Pat McCrory to defend anti-gay law in court; U.S. sues.)

Cooper, who is vying to unseat McCrory in November, said in a video that the law, House Bill 2, had had a “real and devastating impact on North Carolina's economy and reputation.”

“And now the governor is pouring gas on the fire he lit by putting billions of education funding on the line,” Cooper said. “Instead of doing what's right for our state, he's doubling down on what he knows he did wrong. Enough is enough.”

“Governor, for the sake of our schools, our children, our economy and our good name set politics aside and undo this discriminatory law now,” he added.

An Elon University Poll released several weeks after McCrory signed the bill into law showed Cooper leading 48-42 among registered voters.