An impromptu media scrum underscored the president’s unusual and sometimes tense relationship with John F. Kelly.