LITTLE ROCK — The state Department of Health said Wednesday it will now begin listing both spouses on birth certificates issued to same-sex couples who have had a child through artificial insemination and were married at the time of the birth of their child.

On Monday, the U.S. Supreme Court ruled against the state in its appeal of a Pulaski County circuit judge’s ruling that a state law allowing the listing of a father and mother, but not parents of the same sex, on birth certificates was unconstitutional. Two lesbian couples who had children through anonymous sperm donation had filed a lawsuit challenging the law.

The agency said it changed its practice after conferring with the governor’s office and the attorney general’s office.

The Health Department said it will amend existing birth certificates for same-sex couples only in cases where the birth mother is listed on the certificate and no one is listed as the father.

Same-sex couples who have left their information with the Health Department will be contacted, the agency said.