I believe the Espionage Act may be the answer. The act was passed during the United States' affiliation with WWI. It banned any disloyal language toward the U.S. government. The act has been amended several times however, due to the fact that it violated some constitutional rights.