WASHINGTON (Reuters) - The U.S. Senate passed its version of a $700 billion defense policy bill on Monday, backing President Donald Trump’s call for a bigger, stronger military but setting the stage for a battle over government spending levels later this year.

U.S. Army soldiers take part in an urban warfare drill during their joint military exercise, named Orient Shield 17, with Japan Ground Self-Defense Force members near Mount Fuji at Higashifuji training field in Gotemba, west of Tokyo, Japan September 18, 2017. REUTERS/Issei Kato

The Republican-controlled chamber voted 89-8 for the National Defense Authorization Act for fiscal year 2018, or NDAA, which authorizes the level of defense spending and sets policies controlling how the money is spent.

The Senate bill provides about $640 billion for the Pentagon’s main operations, such as buying weapons and paying the troops, and some $60 billion to fund the conflicts in Afghanistan, Iraq, Syria and elsewhere.

The 1,215-page bill includes a wide range of provisions, such as a 2.1 percent military pay raise and $8.5 billion to strengthen missile defense, as North Korea conducts nuclear weapons and ballistic missile tests. It also bans Moscow-based Kaspersky Labs products from federal government use.

The House of Representatives passed its version of the NDAA at a similar spending level in July.

The two versions must be reconciled before Congress can consider a final version. A fight over spending is expected because Senate Democrats have vowed to block big increases in funds for the military if spending caps on non-defense programs are not also eased.

The versions of the bill increase military spending well beyond last year’s $619 billion, defying “sequestration” spending caps set in the 2011 Budget Control Act.

Trump wants to find more money for the Pentagon by slashing nondefense spending. His fellow Republicans control majorities in both the House and Senate, but they will need support from Senate Democrats to change the rules and allow a bigger Pentagon budget.

Senator John McCain, the Republican chairman of the Senate Armed Services Committee, has been shepherding the legislation through Congress as he undergoes treatment for an aggressive type of brain cancer.

Arguing for increased spending, McCain said more men and women in uniform are dying in avoidable training accidents than in combat. “Where’s the outrage? Where’s our sense of urgency to deal with this problem?” he asked before the vote.

Both the Senate and House rejected Defense Secretary Jim Mattis’ plan to close more bases starting in 2021.

Despite partisan divides that have kept Congress from passing much major legislation recently, the NDAA has been passed for 55 straight years.

Trump has criticized parts of the NDAA, but has not threatened a veto.