President Trump’s comments deepened his rift with mainstream European leaders over defense and Ukraine policy.