3 branches of government. Separate, but EQUAL.
And with checks and balances. It's a case or controversy (boy is it!) arising under the Constitution, which gives the Judicial branch Constitutional authority to resolve it.
The judiciary rules against the Executive (rules, regulations and actions) and Congress (laws) all the time.