Change the code and it becomes way cheaper to renovate them. Turn them into dormitory style buildings with communal bathrooms and interior apartments with no outward facing windows
Most married couples would still not prefer them. It would be stuffed by single people that would otherwise be homeless.
That's fine, the married couples can live elsewhere. If the only thing we accomplish is ending homelessness, then that's a major achievement