Ruling could force developer to demolish top 20 floors of Manhattan luxury tower