(AP) Gay rights groups that made the defeat of North Carolina Republican Gov. Pat McCrory this year a top priority because of a law limiting LGBT rights that he signed are celebrating after his concession to Democrat Roy Cooper.

Human Rights Campaign President Chad Griffin said Monday that McCrory's "reign of discrimination is finally over" after McCrory announced publicly it appeared Cooper won.

Related: Full Page Ad Snipes Antigay NC Governor on His Birthday

The law known as House Bill 2 prevented local nondiscrimination ordinances designed to protect LGBT people. The law also tells transgender people to use restrooms in schools and government buildings that correspond to the sex on their birth certificate.

Cooper says he wants the law repealed. Republicans who approved to still control the legislature.

Tami Fitzgerald with the North Carolina Values Coalition supported the law and McCrory. Fitzgerald says McCrory's defeat "was orchestrated by radical forces outside North Carolina" and warned Cooper against any attempt to "compromise the privacy and safety of our children."