Most of the people in dire straits in SF came here from elsewhere. I don't think subsidizing is the city's responsibility, and doing so only encourages more to come.
I know this sounds harsh, but I can't see how incentivizing low-income people to move to an unaffordable city is feasible or prudent.