The Obama administration had argued that Title VII’s prohibition on sex discrimination included sexual orientation and gender identity, a definition the Trump administration has been steadily moving away from.