The House on Thursday passed the so-called security minibus appropriations package on a 235-192 vote, allocating nearly $790 billion across four separate spending bills, including $658 billion for defense.

The measure designates $584 billion in regular defense appropriations and $73.9 billion in Overseas Contingency Operations accounts.

The bill also allocates $1.57 billion for a border wall, perhaps the most contentious line item in the massive spending package. And it blocks some defense spending in Afghanistan and transactions with Iran, while adding funds for missile defense and other weapons programs.

The House quickly worked through 54 defense amendments ahead of the final vote on the bill, including approving one from Democrats Peter Welch of Vermont and Barbara Lee of California that prohibits defense spending on uniforms for the Afghan National Army.

The amendment’s passage follows testimony from three top U.S. auditors who on Tuesday told the House Armed Services Committee that the Pentagon had spent as much as $28 million buying “unnecessary, untested and costly” uniforms for the Afghan military since 2008.