I think the law that Trump used is unconstitutional because it provides limitless authority to break any law due to national security. It doesn't provide any place to test what qualifies as national security. That's why the court system is doing its job and checking the executive branch and its use of power.