Jim McGregor, the chairman of Greater China for APCO Worldwide, said the trade war and other restrictions were already shaping investment decisions by American technology companies. When deciding where to put their money next, many companies have quietly been looking to invest outside the United States to secure access to China.