Planning permission has been granted for a high-rise block of flats near West Ealing train station in west London, after the local council originally rejected the scheme.