Star Trek was always political, but IMO it totally lost the plot after Rodenberry died.
DS9, great as it was, starting contradicting all the things it was supposed to be as it wore on, and nothing afterward was any better.
Gene wasn't a great writer, or director, or even a decent human being according to most of his family, but he WAS a visionary. He foresaw a future for humanity that had literally evolved past the troubles of the latter half of the twentieth century. A future were homo sapiens were, literally, better people than we are today.
People who have not seen the unaired pilot (filmed in Black & White), don't know he has the first officer & smartest person on the ship NOT as Spock, but as a woman (Majel Barrett, his later wife and regular TNG guest as Lwaxana Troi). The TV producers thought a woman in that role was ridiculous and forced him to recast, and he moved the alien (Leonard Nimoy) into the role.
There is no racism, classism, homophobia, or any other social flaw of humanity in Gene's Star Trek. He shows this over and over and over, but later producers (cough, Rick Berman), didn't "get it". They thought Star Trek needed more grit & edge, darkness and "realism", and they essentially killed the franchise. Everything you see today exists solely based upon the work before Berman and others "made it better".
That's the thing about old-school Star Trek that many hipsters, rebels, disillusioned, and even mainstream Hollywood movers & shakers never understood, the thing many fantastic authors never got ... Star Trek was never about the failures of humanity (Every. Other. Sci-Fi. Ever.), it was about humanity exceeding our expectations. It was ALWAYS about showing that we can be better than we are, via characters that have already exceeded our goals. Having a character deal with a contemporary social problems drags the world back down from the distant galaxy and into just another Monday.
We don't need tricorders and phasers for that.