Ed Litton, a moderate pastor from Alabama, won a high-stakes presidential election with the potential to reshape the future of the country’s largest Protestant denomination.