Pope Francis’ funeral on Saturday will bring together leaders who sometimes clashed with the pope on issues such as global migration.