Does "In June 1917, the U.S. Congress passed the Espionage Act of 1917 which was later extended by the Sedition Act of 1918, enacted in May 1918." correctly answer the question of When did Congress pass the Espionage Act?
yes