Apparently the Executive branch of government works for the Judicial branch and requires Judicial approval to rescind executive orders, though not to create them, if the Judicial branch likes them. A Federal Judge ordered the President to restore President Obama’s D.A.C.A. program because President Trump capriciously rescinded it. In other words the President had no reason or right to monkey with Executive orders made by Democrats.
Constitutional law experts would know where the President stands in regard to capricious judicial legislating from the bench. That is, what remedies the President has, such as hanging the judges or whatever.