An Iowa judge has ordered the state’s Department of Human Services to provide Medicaid coverage for sex-change surgeries.

Judge William Kelly ruled that “once the medical community determined that surgery is medically necessary to treat this health issue, the government lost its rational basis to refuse to pay for the surgery.”