That’s what most European countries (social democracies) are doing. Safety net so you don’t randomly become homeless (you keep getting a part of your salary for a while, and even without any money there are enough places to sleep for all homeless people, at least in Austria), free healthcare, …
Siding against colonialism: I guess its not colonialism when you’re colonialising your neighbouring countries and using your military to keep them in line / end liberation movements by force?
Siding against national socialism: At first they collaborated to take Poland together, and they made a deal to not attack each other. Only after Hitler broke that deal and attacked, forcing them to fight them, the USSR turned against Nazi-Germany.
… and more?