A spate of drills by China’s military in the Indo-Pacific is testing the Trump administration’s commitment to regional security soon after its actions raised doubts about its alliances with European nations.