It was the "Alien and Sedition Acts" that authorized the president to arrest and deport immigrants who criticized the federal government and limited the free speech of Americans since America was still very "fragile" at this time.
it has been answered here before check it