The majority of the homelessness budget goes towards subsidized housing and small, but still significant fraction is spent on temporary shelters. According to this source, only 7% of SF's budget is spent on street outreach, which is what most people think about.
https://sf.curbed.com/2019/12/19/21027974/san-francisco-home...