Have you heard of the courts?
The president can settle any issues between their view, the agency head’s view, and the agency’s guiding laws, in the courts.
The courts are their specifically to settle disagreements.
That’s how the law works for agencies. That’s how the law works for all laws.
Three branches checking each other.