With the Biden administration’s expansive and expensive support of allies such as Ukraine, Israel and Taiwan proving politically divisive, the Pentagon chief said recent events show the dangers of U.S. isolationism.