Best would be if the company increased salaries, then their employees could invest themselves in stuff that actually benefit them, boosting the real economy.
To be clear, I think that we need to address both of these issues: general wealth distribution and lack of affordable housing.