White House officials privately acknowledged that the testimony from Ambassador Gordon Sondland had damaged the president’s case.