House Bill 2, one of the most socioeconomically divisive laws in North Carolina history, was repealed Thursday after Gov. Roy Cooper signed a bill both legislative chambers approved.