A forgotten Star Trek episode tackled abortion and immigration, angering fans and earning a reputation as one of TNG’s worst.