Radiolab has a great episode about how this more broad application of the first amendment sort of came about due to Oliver Wendell Holmes changing his mind about what actually constitutes a "clear and present danger" between two Supreme Court cases in 1919.
https://radiolab.org/podcast/what-holmes