I fail to see how the courts have a role in this matter. Judges are not briefed on national security, have no classified access to intel, no security advisors - NOR security clearance in many cases, to receive the Intel to form an expert opinion.
Since the Congress has repeatedly passed legislation bearing on this issue and thus made their intent clear, I don't think the courts have any authority under the Constitution to interfere in these matters. Let the Congress pass a law limiting executive authority of they so wish.
We all know how this will procede; a 9th Circus judge will rule that DJT cannot execute executive power in this instance and we will have to await SCOTUS to decide. Drugs, gangs, children, human traffickers will flood our country in the interim. As Rush says, in the end POTUS will prevail.
Once there is an Emergency Declared, in order for Congress to contest\end it, a legislative process kicks in.
If it comes before a judge, before the process has been exhausted, the judge should kick it because its not ripe.
(No judge should accept a lawsuit at the beginning, but who knows.)
The proclamation is transmitted to congress and published in the Federal Register.
Congress can try to terminate the proclamation by concurrent resolution.
The concurrent resolution process then takes on a life of its own.
If there is a concurrent resolution, it gets sent to the President for his signature or veto.
If veto, 2/3rds of Congress is needed to override.
The president doesnt need to fight 2/3rds, he only needs to concentrate on the number needed in each house to sustain the veto.
Decent explanation here:
https://heavy.com/news/2019/01/can-congress-block-national-emergency/