Mr. Bolton got into a sharp exchange on July 10 with Gordon D. Sondland, the Trump donor turned ambassador to the European Union, who was working with Rudolph W. Giuliani, the president’s personal lawyer, to press Ukraine to investigate Democrats, according to testimony provided to the investigators.