Transgender people free to enlist in US military from 2018 after court ruling