PROVIDENCE, R.I. -- The number of U.S. states allowing gay marriage is set to enter double digits now that Rhode Island's state Senate has taken a landmark vote.

Legislation allowing gay and lesbian couples to wed passed Wednesday evening by a comfortable 26-12 margin. The House has already passed the bill, but will hold a largely procedural final vote next week before the bill goes to Gov. Lincoln Chafee, an independent, who said he will sign it into law.

When he does, the last holdout in the region will join the five other New England states that already allow gay marriage. Nine states and the District of Columbia now allow gay marriage. Delaware could be the next state to follow suit - gay marriage legislation narrowly passed the Delaware House on Tuesday and now heads to that state's Senate for consideration.

Hundreds of people filled the Rhode Island Statehouse with cheers following the vote.

"It shouldn't have taken this long," said Michael Sherman, a gay man from Warwick who watched the vote. "Religion is a choice. Being gay is not. Why should someone be able to say I can't get married because of their religion?"

Marriage legislation has been introduced in this heavily Catholic state for nearly two decades, only to languish on the legislative agenda. Supporters mounted a renewed push this year, and the Senate vote was seen as the critical test after the House easily passed the bill. Chafee called Wednesday's vote historic.

"I'm very much looking forward to signing this," he told The Associated Press as he congratulated supporters.

The first gay marriages in Rhode Island could take place Aug. 1, when the legislation would take effect. Civil unions would no longer be available to same-sex couples as of that date, though the state would continue to recognize existing civil unions. Lawmakers approved civil unions two years ago, though few couples have sought them.

Hundreds of opponents also gathered at the Statehouse for the vote, singing hymns and holding signs as the Senate deliberated. Rev. David Rodriguez, a Providence minister, said he was disappointed by the vote. He said he planned to continue to stand up for traditional marriage.

"Marriage between a man and a woman is what God wanted," he said. "We will continue to do what we know how to do: Keep praying and preaching."

The Roman Catholic Church was the bill's most significant opponent. During the Senate's emotional debate several senators said they struggled mightily, weighing their personal religious beliefs against stories they heard from gay constituents or their families.

Sen. Maryellen Goodwin, D-Providence, said she lost sleep over her vote but decided, despite opposition from the Catholic Church, to vote "on the side of love."

"I'm a practicing Catholic. I'm proud to be a Catholic," she said, adding that it was the personal stories of gays, lesbians and their families in her district who convinced her. "I struggled with this for days, for weeks. It's certainly not an easy vote."

Opponents of the bill tried unsuccessfully to send the question to the voters as a ballot referendum. After that failed, Sen. Harold Metts, D-Providence, told his colleagues that he couldn't go against his religious convictions and that residents in his community are more concerned about other matters.

"My constituents are more concerned with bread-and-butter issues," he said. "They want food on the table. They want their kids to get a good education."

The Rhode Island legislation states that religious institutions may set their own rules regarding who is eligible to marry within the faith and specifies that no religious leader is obligated to officiate at any marriage ceremony and no religious group is required to provide facilities or services related to a gay marriage.

While ministers already cannot be forced to marry anyone, the exemption helped assuage some senators' concerns and ease the bill's passage this year.

Two years after gay marriage legislation foundered in Rhode Island, supporters regrouped and this year mounted an aggressive and coordinated campaign that included organized labor, religious leaders, business owners and leaders including Chafee and Providence Mayor Angel Taveras.

The bill's chances improved further when Senate President Teresa Paiva Weed said she would allow the bill to move forward, despite her opposition to gay marriage. The Newport Democrat voted no on Wednesday.

Earlier this week, the Senate's five Republicans announced they would support the measure. Senate Minority Leader Dennis Algiere, R-Westerly, said the decision came down to core Republican principles.

"This is an issue of fairness, equality and civil rights," Algiere said. "Those are our values, and we stand by them."

House Speaker Gordon Fox, D-Providence, who is gay, had vowed to hold a vote on gay marriage early in the session. He said his chamber will hold hearing April 30 on the small changes made to the bill in the Senate. A final vote is tentatively scheduled for May 2.

Annie Silva, 61, predicted that more states would soon join Rhode Island. Silva and her partner of 30 years live just across the border in North Attleboro, Mass. She hopes to retire to her home state of Rhode Island now that the state is poised to extend marriage rights to gays and lesbians.

"No. 10 is a nice round number, but I'd like it to be bigger. Fifty sounds good to me," she said.