I don't understand this whole "Star Trek has always been woke" thing going on. The Prime Directive was about non-interference in other cultures. That's literally Libertarianism.
The times the PD was broken were usually when the situation threatened a crew member or the whole ship.