"Even if you do not oppose war, don't you want to know what it costs you, your children, your grandchildren and your great-grandchildren?" Lewis said on the House floor on Friday. "For too long, there has been a big, fat blank check for war. We need to be honest with ourselves."

The amendment was modeled after Lewis's Cost of War Act, which requires DOD to work with the IRS and others to tabulate the costs of the wars, and post those costs on a public website.

According to the amendment, the figure must include current costs as well as "relevant legacy costs."

The House also approved a separate amendment to the bill from Rep. Bruce BraleyBruce Lowell BraleyOPINION | Tax reform, not Trump-McConnell feuds, will make 2018 a win for GOP Ten years later, House Dems reunite and look forward Trump: Ernst wanted 'more seasoning' before entertaining VP offer MORE (D-Iowa) that would require the administration to submit a report to Congress that estimates the long-term costs of operations in Iraq and Afghanistan.