As stated right there on the page, the CBO is only counting DoD funds and training funds/aid, which aren't even close to the amount of money actually spent.
'Between September 2001 and October 2012, lawmakers have appropriated about $1.4 trillion (including an estimated $127 billion for fiscal year 2012) for operations in Iraq and Afghanistan and for other war-related activities. Of that funding, about $1.25 trillion has gone to the Department of Defense
, with nearly $150 billion provided for training indigenous security forces
and for diplomatic relations and foreign aid
for Iraq and Afghanistan. "
Learn to read and learn to understand how defense spending occurs.