Barr's playing a role. At worst, he's secretly a deep state loyalist but a known quantity being used by Trump.
Personally, I think he's put out signals that he's on the right side, but if he's not, I seriously doubt he has the power to derail the plan.