You could also just pay them off to shut up with some tax credits or something when it's a closer fight like that. It's not ideal, but destroying California's oil demand has the same outcome climate-wise whether some of the money goes to local oil producers or not. You basically tax the world oil production market to the tune of $1, of which California is less than a percent of, then give the local producers two cents out of the dollar, which is more than twice what they lost and should make them very happy.
In theory that could even work in a state like Texas -- pass a carbon tax and give some of the money to the local oil producers as compensation for the correspondingly slightly lower wholesale global oil prices, so that they have to sell their oil outside the state and for a lower price but still come out ahead with the tax credit. But then you get a lower dividend for everybody else, in proportion to how many local oil producers there are that you have to pay off, and it's not exactly a popular proposition there to begin with, so the hope of getting that through in Texas still seems pretty slim.