He recalled America’s tradition of welcoming migrants and promoting religious freedom during the Liberty Medal address