A federal appeals court has upheld a lower court's ruling that a Georgia county illegally discriminated against a sheriff's deputy by failing to pay for her gender-affirming surgery.