The approval comes at a time when the city is struggling to provide affordable housing to meet state mandates.