The president has consistently celebrated the deaths of political foes. His response to Mr. Mueller’s death drew criticism from Republicans and Democrats.