No doubt, GPL had some influence. But I would hardly single it out as the force that ensured software stayed open. Software stayed open because "information wants to be free" [2], not because some authors wield copyright law like a weapon to be used against corporations.
[1]: https://opensource.com/article/19/4/history-mit-license
[2]: A popular phase based on a fundamental idea that predates software.