These measures taken by the US government were primarily a reaction to

:: the sinking of the USS Maine
:: the creation of the Manhattan Project
:: the bombing of Pearl Harbor
:: the discovery of the Zimmerman Telegram

the bombing of Pearl Harbor