Trump’s criticism of U.S. allies, including Japan, for free-riding on U.S. security guarantees, has deepened anxiety among Washington’s allies about its commitment to post-war security arrangements in the face of a rising China and volatile North Korea.