Plans approved for 38 flats at 'Pannal skyscraper'