Lawmakers voted to stop the state from requiring that an increasing share of new trucks sold there have zero emissions.