A forgotten Star Trek episode was secretly inspired by a classic sci-fi film, shaping the reveal of one of the franchise’s most iconic aliens.