qnli question: When did Congress pass the Espionage Act? sentence: 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.