Gov. Roy Cooper of North Carolina and transgender rights advocates announced on Wednesday that they had