Government officials and private developers say they can’t add more affordable apartments because of not-in-my-backyard mindsets.