President Donald Trump was startled Tuesday as he watched television coverage of his nominee for attorney general describing a warm relationship with the special counsel Robert Mueller in front of the Senate Judiciary Committee, according to three people familiar with the matter.