Federal executive agencies have to be loyal to the government because they are the government. Working for the government and refusing to do what it wants is at best dereliction of work duties and at worst treason.