Court rules sex-change costs are tax-deductible