So vote for people who do that. Except you won't find any, because it's a fever dream. No government can afford just building houses for millions of people. Some have tried and ended up with consequences that they deal with till today
No it didn't and that's not how it works. Also living in the Soviet Union fucking sucked and reading about it on the internet won't give you the full picture.
First of all that literally was how it worked. Every Soviet citizen was entitled to free housing. Second of all I made no comment on the lifestyle therein. If a relatively poor and underdeveloped nation managed to end homelessness then why can’t we. The United States is the richest nation in the history of mankind. The department of housing and urban development estimated that it would cost 20+ billion to end homelessness in the US in 2012, even if you multiply that figure by 10 it would be but a fifth of the yearly military budget. We have plenty of resources, its a matter of allocation