The issue has exposed thorny questions for the city’s affordable housing sector.