The city already lost in court twice after a citizens group challenged the deal because it lacks on-site affordable units.