American politics primarily works based off of what people see on TV or read in the news and what a politician says and what they do are entirely disconnected. So these politicians publically say whatever is the popular openion which in this case is that right to repair is good but then they placate to companies who don't want right to repair to succeed.
This allows them to have their cake and eat it too. They get to say they tried to push for it but there wasn't support even when you can search and find that they in fact voted against it and are even often on the payroll of many of these companies in a round about way.
How is this possible? Well you don't have too fool every American just most Americans and the overwhelming majority of Americans don't care about any issues that do not effect abortion, gun control, taxation, or jobs. This doesn't directly effect those things in a significant for Californians so it becomes quick forgotten in a month when some other hot topic becomes the news of the week.
If a conservative politician is pro abortion and pro gun control they can do anything else they want legislatively and get the votes they need for reelection so they pass laws on the side in which they are sure to get financial kick backs for. It's basically a mr.smith goes to Washington but nobody ever has to deal with the consequences of corruption they just get upset when they are caught.
Rinse and repeat.