Let churches run them. That's the C in YMCA. It was founded as a mission to guide the development of young men in health directions.
Wouldn't want to endanger the homeless by letting them sleep under a church roof without the the state's approval, much safer to keep them sleeping on the side of the highway and arrest the pastor /s.