Even if I agree to the premise (which I do not.. ) it still does not address many many many of the concerns people have around these types of laws including the fact they are largely regressive in nature impacting poor people the most, they are more Climate Theatre than actual effective policy on changing any kind of Climate change, and the unintended effects could be worse either for humans or for the environment
There are many things I think can be done for Climate change, Banning gas powered cars is not one of them
Yes, this is meaningless unenforceable pablum to curry votes prior to an election.
A serious effort would be to do say, an enforceable statewide boycott of imports from nations that are still building fossil fuel plants the same way the abolitionists got rid of global slavery in the 1800s.
A seizing and decomission of all state fossil fuel power production and a disbursement of the war chests to the laid off workers the same way we got rid of global whaling could help too.
There's lots of precedence for this, but we'd need to do some command economy level actions to achieve it.
You'd also need a bunch of political leaders willing to kamikaze their careers to achieve it. I don't see it happening tbh.
There are many things I think can be done for Climate change, Banning gas powered cars is not one of them