An extension to a former council building in Eastbourne has been given approval which is set to create eight new flats.