Obama sat next to Trump and the two longtime political rivals chatted amiably as the dignitaries filed in for the service.