The Sedition Act is legal because its prevent unnecessary utterances from the citizen against the government.
According to the Section 2 of the Sedition Act, its states that anyone who is found guilty of statements critical of the government, house of the Congress, President will be subject to fines or imprisonment.
Despite that the first amendment grants "freedom of speech", right of the people peaceably to assemble, and to petition the government for a redress of grievances, the Sedition Act is legal because its aims to prevent unnecessary utterances from the citizen against the government
Read more about Sedition Act
brainly.com/question/9655451