This is indeed a hard problem, when you have a country like China, with a long term strategic plan and control over its companies and a country like US in which companies are more focused on keep Wall Street and media happy.
The US government has long had the authority to limit trade with China. Can't blame companies for acting rationally, but you can blame the government for failing to tackling national security threats.