The legislative branch can pass a law requiring enforcement, likely within some specified parameters or timeline. If that passes and is constitutional, the courts could be tested and uphold the law.
The system is surprisingly simple, it just requires leaders willing to actually uphold it.
Those both risk creating a constitutional crisis, not avoiding one.
At this point the Executive is already ignoring the law.