Ministers will always spend the money needed to defend the UK, Downing Street said, after Donald Trump called for Nato allies to spend 5% of their national output on defence.