By the time Trump takes this all the way to the Supreme Court, Trump will have shot down all rulings of the lower court.
The power and authority of the President granted by the US constitution involving National Security is overwhelming.