States pass laws requiring O&G to pay for climate change fix