The wide-ranging bill supports the decarbonization of the state’s building and transportation sectors, scrapping language that would have blocked residential retail energy choice.