There’s a pretty clear political mandate in SF to provide things like healthcare and housing for the homeless, part of which is paid for by HUD. If a large chunk of that budget went away, I doubt voters would want to cut services, so the city would have to make it up themselves.