Rutherford Hayes actually said...
This money is needed to keep in operation the essential functions of all the great departments of the Government--legislative, executive, and judicial.
Context
Veto Message
05/28/1879