Gender-affirming care case headed to Supreme Court