The various attorneys general serve "at the pleasure of the POTUS." Meaning: they are functionally political appointees of the executive branch. The various attorneys general merely set the agenda for their district's law enforcement; most of the litigators are non-political appointees, and aren't replaced by changes in executive power.