That's just bloody dumb. Just spend the same money to build cheap apartments and give them away for free.
The situation you described, 'build cheap apartments', is already the current situation. It hasn't worked has it?
Land ownership is a heavily regulated industry, and wherever you have regulations you get distortions in the market caused by political activity (electrician/plumber unions, local land owners etc).