While NATO members have agreed to boost defence spending, Trump’s attacks on Spain and Greenland have threatened unity.