Welcome to the Patriot Act. This is legal and constitutional because Congress passed this legislation with overwhelming support. Also see the Bank Secrecy Act and Anti Money Laundering Act.
https://whoisyourvpn.com/news/fbi-director-admits-to-potential-misuse-of-personal-data/