The largest expense for running an ER is dealing with people that use it as a homeless shelter. I have first and second hand knowledge of this.
Weather gets cold? Visit Er. Due to federal regulation, even if a person visits 13 times a day (facility record btw) they can’t be turned away.
Progress needs to be made on both avenues. ERs need the ability to turn expensive frequent fliers away and be absolved of liability, but also shelter programs that are metrics based (job placement, illicit substance abuse, participation in mental health) need private funding.
California funds an enormous prison population, a significant portion of them are non violent or victimless crimes. So that being said, the money is already available.