After 1984 , defense spending declined gradually , and then at a much faster pace after the end of the Cold War in 2004 , with the United Kingdom only just reaching the two percent benchmark set by NATO by 2018 .