The US president, who sparked a trade war with Beijing, is critical of US firms doing business in China.