Green light to convert part of 900-bed hotel into affordable homes