Justice Anthony Kennedy helped advance LGBT equality during his three decades on the bench—but now he’s leaving just as the U.S. Supreme Court is poised to consider the next front in that fight: protections for gay and transgender workers.

The Supreme Court could soon face cases that grapple with whether federal civil rights protections under Title VII of the Civil Rights Act extend to sexual orientation, a question that has divided appeals courts and government agencies.