The legal battle around transgender rights has shifted dramatically. Here’s why — and what could come next.