The U.S. House of Representatives on Wednesday narrowly passed its version of a massive defense policy bill, despite Democrats' concerns over its hefty cost, the war with Iran, and a provision that would bolster Pentagon ties with Israel.

The House approved the National Defense Authorization Act for fiscal year 2027, which allocates the largest-ever military budget of $1.15 trillion, with 216 votes in favor and 212 against. All but seven Republicans voted for the bill, and all but six Democrats voted against it.

Democrats objected to the massive amount allocated to the Pentagon at a time when President Donald Trump and Republicans are cutting spending on social programs. They also objected to the ongoing war with Iran, which lacks support, and the Pentagon said its cost has reached $37.5 billion so far.

Republicans said the trillion-dollar spending is necessary to support the military while it is at war with Iran, to fund the development of defense systems and purchase equipment, and to provide benefits for soldiers such as pay raises of up to seven percent, and to build barracks and housing for their families.

Among other measures that worried Democrats was a provision that would significantly expand military-technological cooperation between the United States and Israel, despite calls from many Americans - particularly on the left - to reduce U.S. support for Israel over concerns about the large number of Palestinian civilian casualties from Israeli attacks in Gaza.