As awful as this is, it seems completely legal since the executive agencies operate at the mercy of the President. The President has the authority to tell the EPA to stop researching climate science, or to even disband the EPA.
Have we never considered this scenario before? Has there ever been an attempt to establish independent agencies, not subject to the whims of the White House? (IIRC, maybe the CIA or the FBI are independent agencies?)