Again with the “national security” argument. Yes, it’s immoral, just like PRISM and COINTELPRO and mass domestic surveillance and GITMO and the Patriot Act and the racism at the TSA and secret police and censorship are all immoral despite protecting “national security.”
“National security” is not a valid blanket excuse to implement draconian policies.