The Pentagon has spent billions of dollars in recent years to buy weapons and train more troops in areas where it says it has no real need, but many analysts say the military’s use of those weapons has increased.

In the last year, the Pentagon has used nearly 1,400 weapons in Iraq, Syria and Afghanistan, according to data compiled by The Associated Press, and spent $3.2 trillion on military aid to those nations.

It has spent about $600 billion on weapons and training overseas, according in its annual Defense Authorization Act.

Ahead of the vote, a bipartisan group of lawmakers called for the Pentagon to “immediately withdraw all military assets from countries where the president’s orders are in question.”

Sen. John McCain, R-Ariz., chairman of the Armed Services Committee, said on Wednesday that the decision is “inconceivable” that the U.S. is “still in Iraq or Afghanistan.”

“What’s at stake is the survival of a military that was created and expanded to meet the most urgent needs of our men and women in uniform,” McCain said in a statement.

“Our country cannot continue to fund a war that continues to have devastating and costly consequences.”

The defense authorization act allows the Pentagon broad authority to buy, develop and arm weapons and equipment overseas and authorize military forces to engage in war without congressional approval.

The bill passed the House by a voice vote in late February, but Senate approval is expected soon.

The Pentagon said in the bill that it had purchased about $1 trillion worth of weapons and other military equipment in the past decade.

The Pentagon has also expanded its war games in Iraq and Afghanistan.

A few months ago, the military announced that it was conducting a new drill in Afghanistan, including deploying special forces to simulate a counterinsurgency mission in the country.

The Defense Department has also been testing its air-launched cruise missiles, including the THAAD system, which could be used against North Korea.

The U.N. Security Council is also considering tougher sanctions on North Korea for its latest missile launch.

The Trump administration has also pushed the Pentagon into other areas, including sending the U-2 spy plane and other assets into Yemen and sending troops into the Central African Republic.