Governments can issue muni bonds to build housing if private developers will not or cannot, and use eminent domain to acquire rental real estate not being maintained to living standards codified in statue.
I personally think the Vienna model is ideal.
https://www.newstatesman.com/spotlight/economic-growth/regio...