The president seemed intent on showing that he would not be baited into a confrontation every time an American adversary tried to provoke him.