President Yoon Suk Yeol, who has already been impeached, became South Korea’s first sitting leader to be detained after weeks of openly defying authorities.