The US Congress gave final approval late on Thursday to President Barack Obama’s plan for training and arming moderate Syrian rebels to battle Islamic State, a major part of his military campaign to “degrade and destroy” the militant group which is active both in Syria and Iraq.

The Senate voted 78-22, in a rare bipartisan show of support for one of Obama’s high-profile initiatives.

With the House of Representatives approving the legislation on Wednesday, the measure now goes to Obama to sign into law.

Ten Senate Democrats and 12 Republicans voted against the proposal.

Obama thanked Congress for the speed in which it acted to back the plan, which he announced on September 10, and said the strong bipartisan support showed Americans were united in the fight against Islamic State.

“When you harm our citizens, when you threaten the United States, when you threaten our allies, it doesn’t divide us, it unites us,” he said at the White House after the vote.

When you harm our citizens, when you threaten the United States, when you threaten our allies, it doesn’t divide us, it unites us

Obama also said that more than 40 countries, including Arab states, had joined the coalition that will battle the Islamic militants, and that France would join in airstrikes against Islamic State in Iraq.

The plan to arm and train the rebels was written as an amendment to a spending Bill that would keep the US government operating on October 1, the start of a new fiscal year. However, some lawmakers objected to including a “war vote” in a fiscal measure.

Others worried that getting involved with the rebels would lead to broader involvement in Iraq or in Syria’s civil war or that any arms given to them might fall into the wrong hands and end up being used against US forces or their allies.

Republican Senator Susan Collins of Maine voted for the spending Bill, but said Congress should have engaged in a full debate over the overall plan to stop Islamic State.

A member of the Senate Intelligence Committee, Collins said she had not been given enough details, including information about the moderate fighters.

“I’m concerned that the fighters that we train will be focused on what really motivates them, which is removing (Syrian President Bashar al-) Assad, not fighting Isis,” she told Reuters, using an alternate name for the militant group.

The rebels have been fighting a three-year civil war against the Syrian President, who has held on to power despite the rise of the Islamic State group and a covert US effort backing the moderate fighters.

If Obama signs it into law as expected, the authority to train and arm the rebels would expire on December 11.

The legislation is likely just the start of a debate over what longer-term role the US military should have in battling a group that has killed thousands in Iraq and Syria, declared war on the West and is held responsible for beheading two American journalists.

After the vote, members of Congress left town to campaign in their home states for the November 4 elections.

When they come back for a likely short, end-of-year session, they are expected to return to the question of battling Islamic State militants.

Sign up to our free newsletters

Get the best updates straight to your inbox:
Please select at least one mailing list.

You can unsubscribe at any time by clicking the link in the footer of our emails. We use Mailchimp as our marketing platform. By subscribing, you acknowledge that your information will be transferred to Mailchimp for processing.