North Carolina Gov. Roy Cooper, a Democrat, worked with and against a Republican-controlled legislature on issues like economic development and the coronavirus pandemic.