However, there were wide discrepancies in spending among NATO countries, the alliance’s annual report shows.