"What they are trying to do is to restrict/discourage driving"
They know people in California have to drive. It's no more an attempt to restrict/discourage driving than tobacco taxes are an attempt to restrict/discourage smoking.
It's all about the revenue they think they can collect. Nothing more, nothing less.
If it were about revenue, why wouldn't they just raise the tax?