North Carolina lawmakers pass curbs on incoming Democratic governor