Gender-affirming healthcare includes emotional support and just treating someone as their self identified gender, not just physical treatments. In this case it is supposedly only about a law that limited the physical part, but the case wasn’t about the details of the ban but the fact that the ban was combined with the abortion restrictions.
The court decided that although they were two things, both fall under healthcare so apparently that makes them the same thing.