Immigration Act of 1882
1882
Legislated a few months after the Chinese Exclusion Law, this immigration legislationexpanded the ranks of excludable aliens to include other undesirable persons and attributes such as "convicts," "lunatics," and "those likely to become a public charge."
Summary
The 1882 Immigration Act adopted as federal law policies and practices already enacted by the states of New York and Massachusetts that targeted poor immigrants for exclusion and removal. As commitment to restricting immigration hardened, the federal government assumed sole authority to set policy and administer immigration law. Nonetheless, early efforts in immigration restriction adopted priorities of various states and regions, as in the 1803 ban on “negro” immigration, Chinese exclusion, and the 1882 prohibition against those “likely to become a public charge” (LPC). Immigration policy has since regularly maintained barriers against immigration byadults seen as lacking the means to support themselves.The ban against LPCs was most often applied to women traveling alone who were then debarred from entry.
Well every illegal alien fits one of those categories, Trump can use this too
https://immigrationhistory.org/item/1882-immigration-act/