It's never that easy. You'd be surprised the number of homeless folks being in that situation because of things like addiction, mental health issues, etc. Just giving them the money is mostly not helpful.
Just handing over that money to people about to be homeless would do far more than paying administrators to badly run a shelter that homeless avoid because they get all their shit stolen regularly.
1) homeless will want this, and move by themselves
2) other state and city governments will dump homeless on San Francisco as a cheap way to "solve" the problem in their city.