The state/city could nationalize apartment blocks easily and and provide cheap or free housing to those who want it (not means tested, you want somewhere to live but don't want to deal with a landlord? Here's your state housing).
This will provide a floor for landlords to compete against and keep prices down.