The president spoke for over an hour at the event attended by world leaders, members of Congress and other faith leaders.