LAS VEGAS (AP) — A dizzying legal wrangle is over in the wedding capital of the world with same-sex couples getting marriage licenses in Las Vegas and other Nevada cities.

Same-sex couples cheered at the marriage license bureau in Las Vegas as frustration gave way to elation and the first licenses were issued.

In Las Vegas, Clark County Clerk Diana Alba began issuing similar licenses just after 5 p.m.

"It's amazing, this is it," said Theo Small as he stood next to his partner, Antioco Carillo, and looked down at their marriage license, the first issued in Las Vegas.

A clerk in the Carson City marriage license office, Elizabeth Phelps, says two women — Kristy Best and Wednesday Smith — were the first same-sex couple in the state to get a license about 3 p.m. Thursday.

Their hopes of getting married had been in limbo since the 9th Circuit ruled Tuesday that gay couples' equal protection rights were violated by same-sex wedding bans in Nevada and Idaho.

Meanwhile, gay couples in West Virginia began receiving marriage licenses after the state's attorney general dropped his fight opposing same sex-unions. At least one couple was married in a brief civil ceremony outside a county courthouse, The Huntington Herald-Dispatch reported.

In Nevada, the last challenge opposing Nevada gay marriage was dropped early Thursday, and the 9th Circuit Court of Appeals again declared that its ruling allowing same-sex couples to marry in the state is "in full force and effect." Clerks waited for a trial judge to enforce the court's order before they started issuing licenses late Thursday afternoon.

Gay-owned chapel Viva Las Vegas, which features Elvis impersonators at the altar and themed weddings, had readied plans to offer special packages for same-sex couples.

___

Associated Press writer Ken Ritter contributed to this report.