Utah state child welfare officials on Wednesday were reviewing a ruling by a juvenile court judge who ordered a baby to be taken from lesbian foster parents and instead placed with a heterosexual couple for the child's well-being.

Judge Scott Johansen's order Tuesday in the central Utah city of Price raised concerns at the Utah Division of Child and Family Services, agency spokeswoman Ashley Sumner said.

Its attorneys plan to review the decision and determine what options they have to possibly challenge the order.

The ruling came during a routine hearing for April Hoagland and Beckie Peirce. They are part of a group of same-sex married couples who were allowed to become foster parents in Utah after last summer's U.S. Supreme Court ruling that made gay marriage legal across the country, Sumner said.

State officials don't keep an exact count but estimate there are a dozen or more foster parents who are married same-sex couples. Utah attempted to bar some same-sex couples from adopting children in 2014.

The couple told KUTV that they are distraught after the ruling that calls for the baby girl they have been raising for three months to be taken away within a week.

They said Judge Johansen cited research that children do better when they are raised by heterosexual couples. A comprehensive review published in June found there is no evidence that same-sex parenting harms kids.

Hoagland believes the judge actually imposed his religious beliefs.

"We are shattered," she told the Salt Lake City TV station. "It hurts me really badly because I haven't done anything wrong."

"The mother has asked us to adopt," Hoagland told the Salt Lake Tribune.

We have a lot of support," Peirce told the newspaper. "DCFS wants us to have the child, the Guardian Ad Litem wants us to have the child, the mother wants us to have the child, so the only thing standing in the way is the judge."

Johansen is precluded by judicial rules from discussing pending cases, Utah courts spokeswoman Nancy Volmer said.

A full transcript of his ruling has not been made public and may not be because court records of cases involving foster children are kept private to protect the kids, Sumner said.

Sumner said she can't speak to specifics of the case but confirmed that the couple's account of the ruling is accurate — the judge's decision was based on the couple being lesbians. The agency isn't aware of any other issues with their performance as foster parents.

The agency is tasked with trying to keep children with one family as long as the parents are providing adequate care.

All couples are screened before becoming foster parents.

"We just want sharing, loving families for these kids," Sumner said. "We don't really care what that looks like."

Al Jazeera and The Associated Press