Mr. Ban’s exit on Wednesday paves the way for the ascension of rival Moon Jae-in, a candidate who has called for closer ties with North Korea, the rethinking of a U.S.-backed missile-defense system in South Korea, and a tougher line on sprawling conglomerates such as Samsung and Hyundai.