A U.S. District Court judge has ordered the state of Utah to pay for attorney’s fees for the plaintiffs who filed a lawsuit against the state over marriage benefits for same-sex couples earlier this year.

Judge Dale Kimball ordered the state Monday to pay eight plaintiffs a total of $95,000 to cover costs from cases heard in both a U.S. District Court and the 10th Circuit Court of Appeals, according to court documents.

In the case, Evans v. Utah, the plaintiffs argued Utah could not retroactively ban marriages between same-sex couples married between Dec. 20, 2013, when U.S. District Judge Robert Shelby ruled Utah’s marriage ban was unconstitutional, and Jan. 6, 2014, when the U.S. Supreme Court stayed the ruling.

More than 900 same-sex couples were married in the first week it was legal, which, along with other marriages performed in the state that week, accounted for a record number, according to data obtained by the Salt Lake Tribune at the time.

Kimball ruled in May that Utah must recognize those marriages, but the U.S. Supreme Court stayed that decision as well. In October, when the Supreme Court declined to hear Utah’s appeal, marriage for same-sex couples once again became legal in the state.