US sanctions on Shanghai-based company ‘illegal’: China