Uber here is your chance to stand up to a tyrant. Move that shiny headquarters and your tax domicile to a business friendly jurisdiction, and leave San Francisco to stew in its nest.
There is nothing wrong with government following the law in due course. Government has the ability by law to tax and spend money to enforce existing laws. If you don't like that, I suggest you lobby to change the law.