Hateful or speciest or racist content within Star Trek isn't acceptable by Federation law - however, that being said, there are many instances of it being displayed by Federation officers. Kirk has been mentioned, though he was guilty of many infractions of Starfleet regulations on different occasions and it could be…