Both passed over intense opposition from the auto industry; almost all advertising in the lead up to the vote was in opposition.
But it passed in both cases because... it's common sense. If you buy a product, it's yours and you should be able to do what you want with it, whether that means modifying the hardware or running whatever software you want.