BOISE, Idaho — The state of Idaho will be shelling out more than $227,000 to an Idaho woman after losing a two-year long case involving same-sex parental rights.

U.S. District Judge B. Lynn Winmill ordered the state to pay the legal fees to attorneys for Adela Ayala in January. When Ayala's child was born in 2012, Idaho officials refused to add her name to the birth certificate because the women weren't married and Ayala's partner was the birth mother. At the time, same-sex marriage was illegal in Idaho.

RELATED: Idaho panel to consider legal fees in same-sex parent rights case

"The request was significantly higher than that but we were able to establish the proper amount was lower then what was requested. It was in the $360,000 range that was being requested," said Idaho Attorney General Lawrence Wasden.

The money comes from the Idaho Constitutional Defense Fund, an account created by state lawmakers in 1995 to finance legal confrontations with the federal government over state sovereignty. However, the fund has been used almost exclusively to pay for legal fees when Idaho was sued over laws found to be unconstitutional.

The fund, which is periodically replenished by the Idaho Legislature, will have more than $1.3 million remaining once the payment to Ayala's attorneys is processed.