Attorney General William Barr will be leaving his job before Christmas, U.S. President Donald Trump tweeted on Monday.