Barr, whose resignation was announced by President Donald Trump on Twitter, said in his resignation letter that Trump was the victim of constant partisan attacks.