The US leader says allies should each aim to spend 4% of annual output (GDP) on their armed forces.