America’s allies and enemies watched as Trump’s pick for defense secretary failed to quell concerns about his character and qualifications.