The N.C. General Assembly on Thursday approved a compromise bill that repeals House Bill 2 but restricts anti-discrimination ordinances in cities and counties.