Which federal law, passed by woodrow wilson during world war i, was enacted to catch german spies and informants and restrict freedom of speech?

Aalien and sedition acts
Bespionage and sedition act of 1918
Cpatriot act
Dsmith act of 1940