Lawmakers in the US state of North Carolina have reached an agreement to repeal a controversial law setting rules on...