The purpose of Hay's notes was to grant all the major powers equal access to Chinese trade and reduce the influence of countries that already had an especially large hold in China (such as Japan and Russia) so they couldn't force other countries (particularly the United States) out of the Chinese market.
Congress passed 4 laws known as Alien and Sedition Acts. The federalist policies was disloyal and feared that aliens living in the United States would sympathize with the French during a war.