A box office flop quietly laid the foundation for the franchise’s biggest TV hits by embracing ideas audiences later came to love.