But then you repeat that searches without a warrant are unconstitutional.
Courts use the "national security" standard just as it is courts who use the "hot pursuit" and "officer safety" standards for searches. Subsequent judicial reviews are available in all cases, though counterintelligence investigations often don't end up in court.
"National security", being such a vaguely defined term, is not an extenuating circumstance for doing something illegal, unless someone's about to blow something up or something. Government's whole purpose is national security. If that became a reason to disobey the law, then law simply doesn't apply to government. I don't know what the specific logician's term for it is, but you're employing a logical device that essentially destroys the foundations on which it is based.