President Trump’s decision to curtail the military exercises came as allies question the U.S. commitment to longstanding alliances.