For all their much-studied drawbacks, affordable housing policies can be a net positive for the aggregate welfare of city dwellers.