Former president Barack Obama and President-elect Donald Trump sat next to each other at the service.