William P. Barr is due to testify Wednesday before the Senate Judiciary Committee, a day after officials revealed that special counsel Robert S. Mueller III complained in March about the attorney general’s initial memo to Congress, which served as a public preview of his report.