In what ways can judicial remarks influence the effectiveness of laws protecting transgender rights?

The Rajasthan High Court expunged remarks on the Transgender Act. I want to explore how courts' opinions can affect public perception and the implementation of such laws.