By DAVID ESPO and ERICA WERNERWASHINGTON (AP) â¿¿ Far-reaching legislation that grants a chance at citizenship to millions of immigrants living illegally in the United States cleared the Senate Judiciary Committee on a solid bipartisan vote Tuesday night after supporters somberly sidestepped a controversy over the rights of gay spouses. The 13-5 vote cleared the way for an epic showdown on the Senate floor on legislation that is one of President Barack Obama's top domestic priorities â¿¿ yet also gives the Republican Party a chance to recast itself as more appealing to minorities. The action sparked rejoicing from immigration activists who crowded into a Senate committee room to witness the proceedings. "Yes, we can! Si, se puede" they shouted, reprising the campaign cry from Obama's first run for the White House in 2008. In addition to creating a pathway to citizenship for 11.5 million immigrants, the legislation creates a new program for low-skilled foreign labor and would permit highly skilled workers into the country at far higher levels than is currently the case. At the same time, it requires the government to take costly new steps to guard against future illegal immigration. In a statement, Obama said the measure is "largely consistent with the principles of common-sense reform I have proposed and meets the challenge of fixing our broken immigration system." There was suspense to the end of the committee's deliberations, when Sen. Patrick Leahy, the Vermont Democrat who serves as chairman, sparked a debate over his proposal to give same-sex and heterosexual spouses equal rights under immigration law. "I don't want to be the senator who asks people to choose between the love of their life and the love of their country," he said, adding he wanted to hear from others on the committee. In response, he heard a chorus of pleas from the bill's supporters, seconding private appeals from the White House, not to force a vote that they warned would lead to the collapse of Republican support and the bill's demise.