But North Carolina lawmakers had, until Thursday's move to pass a partial repeal, by and large stood their ground  even after McCrory's loss to Cooper in the November election, and after Charlotte repealed its nondiscrimination statute in late 2016 to try to placate a repeal deal.