SCOTUS ruled that the two Texas gay men engaged in sodomy were in a private home, so they couldn’t be prosecuted. If two gay men engage in sodomy in a public place then they can be prosecuted.
True, gays can still be prosecuted for sex in a public
place despite the USSC decision (Lawrence v. Texas 2003).
The Court ruled that states cannot criminalize private, consensual sexual conduct
between adults, but specifically noted this does not apply to public sexual acts.
Yet, that does not prevent them from installing gay clubs in schools.
That's what they ruled, but that is not the case according to the Texas statute.
According to anti-sodomy law:
Sec. 21.06. HOMOSEXUAL CONDUCT. (a) A person commits an offense if he engages in deviate sexual intercourse with another individual of the same sex.
(b) An offense under this section is a Class C misdemeanor.