No, not at all. How did you get "the courts shouldn't stop them" from "that's why there's a separate judicial branch to impose the checks and balances"??? That's literally the opposite of what I said.
> Me: That's not how it works.
> You: It actually is
Moreover, regardless of what the courts do, the military still shouldn't execute a law like that, because they too have the ability to refuse to violate the constitution even if Congress tells them to.
Which seems especially unfavorable in context, since "the ability to perform mass surveillance on American citizens" is naturally the sort of thing they ought not be allowed to do.