The rival presidents found common ground on climate change, military communications and fentanyl.