President Trump says the move is a response to Berlin’s failure to meet targets on defence spending.