U.S. moves to de-risk from China with a new investment ban suggest that Western allies may be learning from national security failings in Russia, according to analysts.