The Espionage and Sedition Acts

What historical developments did the federal government consider to be justification for the passage and enforcement of the Espionage and Sedition Acts?