“how is that even constitutional?”
It isn’t. The Constitution is now officially dead.
It was dead when they passed The Patriot Act.