10 billion a year of tax money can fund a lot of stuff. Just because it is a fraction of a 600 billion does not make it somehow better.
In fact, it's from places all over the world, significantly poorer places, where the money would stretch even further.
You're making it sound even worse.
Edit: The main point is that nobody can say that San Francisco has less money with those tech companies operating there than they would if those tech companies left. They are among the richest places on earth and should easily be afford any measures that can be afforded anywhere.