President Trump and his allies have portrayed their efforts to bypass due process as necessary for national security.