A bill limiting the capacity of gun magazines to 10 rounds is headed to the desk of Gov. Dan McKee after a lopsided 25-11 vote in the Rhode Island Senate capped a long and dramatic path through the chamber.

With the strong presence of gun-rights supporters on the Senate Judiciary Committee, and GOP Minority Whip Jessica de la Cruz of North Smithfield voting in ex officio capacity, the bill was defeated on a 6-6 tie.

The Democratic leadership of Senate President Dominick Ruggerio resurrected the House version of the magazine capacity bill, with Majority Leader Michael McCaffrey making a call for immediate consideration.

Republicans called foul, but Democrats say the uncommon procedure is allowed under the rules of the chamber.

Almost three hours of debate followed on the Senate floor, with gun-rights supporters chanting outside the chamber. The chants included “”Vote them out,” and “We will not comply.”

Emotions flared in the generally collegial Senate, with thinly veiled sarcasm and short replies marking some comments.

When GOP Whip Jessica de la Cruz of North Smithfield argued the magazine-capacity bill was not properly before the Senate, Ruggerio responded.

Ruggerio: “We have possession of the bill, Senator.”

De la Cruz: “Forgot -- we’re never in the right, the minority party, right?”

Ruggerio: “I’m sorry?”

De la Cruz: We’re, of course ….

Ruggerio: “Look, we either have possession of the bill or we don’t. We do.”

De La Cruz: “You just engaged me, so I’m engaging back”

Opponents made six attempts to amend the magazine capacity bill, for example, with a grandfather clause or an exemption for concealed carry permit holders. All were defeated on lopsided votes.

The governor has pledged to sign the bill.

The 11 no votes came from Sens. Stephen Archambault (D-Smithfield), John Burke {D-West Warwick), Frank Ciccone (D-Providence), de la Cruz, Frank Lombardi (D-Cranston), Frank Lombardo (D-Johnston), Elaine Morgan (R-Hopkinton), Thomas Paolino (R-Lincoln), Roger Picard (D-Woonsocket), Lou Raptakis (D-Coventry) and Gordon Rogers (R-Foster).

The magazine capacity bill had stalled on Smith Hill for 10 years before gaining broader support amid an ongoing wave of mass shootings.

Sen. Morgan was among those arguing against the bill capping magazines at 10 rounds. She said the legislation will not reduce gun violence and will instead chip away at the Second Amendment.

“It’s little by little by little by little,” she said. “You can’t just take your Second Amendment away, our Second Amendment away. But you can whittle it down, whittle it down and whittle it down, until it doesn’t exist. It’s like throwing a frog in boiling water.”

Supporters of the bill reject that view.

They say Rhode Islanders are still free to own guns and that magazines can be inexpensively converted to comply with the new limit.

Sen. Louis DiPalma (D-Middletown) mentioned Chase Kowalski, one of the young victims of the Sandy Hook massacre in 2012.

“If Adam Lanza had to stop and reload, maybe Chase would have been alive, or his teacher or one of his classmates,” DiPalma said. “So let’s talk about putting this into real perspective. Let’s leave all the hypotheticals out there. That’s a real incident. Think about having that conversation with a friend, with a family member, with anyone who’s been through that.”

Gun owners with magazines that exceed the new limit will have 180 days to modify them, surrender them to police or transfer them to a state where they are legal.

Opponents say this amounts to an unlawful taking without compensation, while supporters said similar laws have withstood court challenges. The supporters also sayt that grandfathering in previously bought magazines would make the law ineffective and provide an easy out for criminal use of large-capacity magazines.

In a statement, the Rhode Island GOP condemned outlawing magazines with a capacity of more than 10 rounds.

“This is rather breathtaking. In just a few months, tens of thousands of Rhode Island gun owners could become felons," the GOP said. "Never have so many law-abiding citizens been put at risk for jail time since the days of Prohibition when possession of alcohol was a crime. A few weeks ago, the General Assembly decided to pass a law that expunged any criminal convictions related to marijuana possession even though, at the time, marijuana was illegal. Now that same General Assembly wants to make possession of certain capacity magazines a crime even though the magazine was bought at a time when it was legal in Rhode Island. This makes no sense. Not even the Democrats in Massachusetts went so far as to turn law-abiding gun owners into criminals."

On 31-5 votes, the Senate also passed bills raising the age from 18 to 21 to buy guns or ammunition and to ban the open carry of loaded long guns, except for hunting. Those bills face one more procedural vote in the House before going to Gov. McKee’s desk.

This story has been updated.

Ian Donnis can be reached at idonnis@ripr.org. Follow him on Twitter @IanDon. Sign up here for his free weekly RI politics newsletter.