In what ways can the judiciary act as a catalyst for advancing LGBTQIA+ rights in India?

A former Supreme Court judge mentioned that the judiciary should help promote LGBTQIA+ rights. I want to explore the possible roles and actions the judiciary can take to support this cause.