Updated: 9:00 p.m. CST

TOPEKA, Kan. — The U.S. Supreme Court on Wednesday said same-sex marriages can go ahead in Kansas in a decision that the state insists applies to only two counties.

Separately Wednesday, a federal judge struck down South Carolina’s ban on gay marriage as unconstitutional.

The nation’s highest court denied a request from Kansas to prevent gay and lesbian couples from marrying while the state fights the issue in court. The order is consistent with how the justices have handled recent requests from other states that have sought to keep their bans in place while they appealed lower court rulings in favor of gay and lesbian couples.

However, Kansas’ emergency appeal was closely watched to see if the court would change its practice following last week’s appellate ruling upholding anti-gay marriage laws in Kentucky, Michigan, Ohio and Tennessee. Those cases now are headed to the Supreme Court, and the gay marriage issue nationwide could be heard and decided by late June.

The Supreme Court last month declined to hear cases from three appeals courts that had overturned gay marriage bans. Kansas, South Carolina and Montana all have refused to allow gay couples to obtain marriages licenses despite rulings from federal appeals courts that oversee them.

Kansas went to the Supreme Court after the American Civil Liberties Union sued on behalf of two lesbian couples. A judge issued an injunction barring the state from enforcing its gay-marriage ban, but the case hasn’t yet gone to trial.

The ACLU says Kansas’ ban violates the couples’ constitutionally protected rights to due legal process and equal legal protection. Gay-rights advocates saw the Supreme Court’s action Wednesday as another sign they’re likely to ultimately prevail.

Article continues below

“Now, this is a day to celebrate,” said Tom Witt, executive director of the gay rights group Equality Kansas.

Still, Kansas Attorney General Derek Schmidt maintains the ruling applies only in Douglas and Sedgwick counties, because the ACLU’s lawsuit was prompted by judges’ orders there.

The ACLU contends the decision applies in all 105 counties, but attorney Doug Bonney acknowledged some court clerks could resist.

The legal situation in Kansas is complicated by a separate case before the Kansas Supreme Court, which Schmidt filed last month…