A legal challenge from two developers, backed by the statewide advocacy group Fair Share Housing Center, has compelled township officials to designate three large properties for affordable housing.