Sounds like you agree with immigration only when it benefits you personally.
It's like when you hire an employee for your company: you're only going to go through with it if the transaction is mutually beneficial (keeping in mind the associated costs), which from your vantage point means that it must benefit your company. Immigration is the same thing, at a larger scale.
But San Francisco, like Switzerland, is part of a larger economy which benefits from freedom of movement.
http://www.npr.org/templates/story/story.php?storyId=1259184...
Besides, in this case their lawyers and lobbyists will see to it that they actually never will have to pay much extra to Uncle Sugar. In the end, the only people who will feel the bite of tax hikes will be ordinary people, and nobody cares about them.