Gov. Roy Cooper’s veto of the bill marks his 12th this year, and lawmakers have overridden all 11 previous vetoes.