The controversial sale marks a setback for Mamdani, who attempted to delay the deal.