With the Patriot Act came FISA. FISA provided the “legal” mechanisms to fabricate the entire Russia, Russia, Russia coup attempt. I’m pretty sure purported FISA leaked info put the goons onto Carter Page.
FISA was established during the Carter administration in 1978, long before the Patriot Act.