John R. Bolton, the former national security adviser, privately told Attorney General William P. Barr last year that he had concerns that President Trump was effectively granting personal favors to the autocratic leaders of Turkey and China, according to an unpublished manuscript by Mr. Bolton.

Mr. Barr responded by pointing to a pair of Justice Department investigations of companies in those countries and said he was worried that Mr. Trump had created the appearance that he had undue influence over what would typically be independent inquiries, according to the manuscript. Backing up his point, Mr. Barr mentioned conversations Mr. Trump had with the leaders, President Recep Tayyip Erdogan of Turkey and President Xi Jinping of China…

Mr. Bolton wrote in the manuscript that Mr. Barr singled out Mr. Trump’s conversations with Mr. Xi about the Chinese telecommunications firm ZTE, which agreed in 2017 to plead guilty and pay heavy fines for violating American sanctions on doing business with North Korea, Iran and other countries. A year later, Mr. Trump lifted the sanctions over objections from his own advisers and Republican lawmakers.

Mr. Barr also cited remarks Mr. Trump made to Mr. Erdogan in 2018 about the investigation of Halkbank, Turkey’s second-largest state-owned bank. The Justice Department was scrutinizing Halkbank on fraud and money-laundering charges for helping Iran evade sanctions imposed by the Treasury Department.