There is no doubt the emergency order will be challenged in court. Imagine the evidence the good guys can introduce to justify the emergency.
https://www.breitbart.com/video/2019/01/06/dem-house-armed-services-chair-trump-has-the-authority-to-use-the-military-to-build-his-wall/