A federal judge ruled against a Trump-era executive order, ensuring continued hormone therapy for transgender inmates