The state of Utah has agreed to pay more than $24,000 to cover legal fees for a married lesbian couple who sued after the state denied them a birth certificate with both mothers' names for their newborn baby.

Court documents filed Friday show that the Utah Attorney General wants to close the case three months after a judge ruled against the state.

U.S. District Judge Dee Benson decided that the two women must be treated the same as a heterosexual couple conceiving through assisted reproduction.

The ruling was the first of its kind since the U.S. Supreme Court legalized gay marriage.

Angie and Kami Roe of West Jordan said state officials told them that one mother must adopt the baby as a stepparent, a process they said is costly, invasive and unfair.