Hello, thank you for taking the time to post your question!
It was actually a series of 4 acts that were meant to protect national security: the Naturalization Act, Alien Friends Act, Alien Enemies Act, and the Sedition Act. They ended up being detrimental to John Adams’ Presidency in the long-run because it sparked a lot of political backlash and erosion of trust in the federal government.
Hopefully that gets you moving in the right direction! Feel free to reach out with a message if you have any questions beyond that! :)