Plans for 230 homes in an empty city centre building have been given approval by the council.