State lawmakers pass bill striking at governor’s power