A review by an outside law firm hired by the Gates Foundation investigated only the philanthropy and not Mr. Gates or his private office.