South Korea’s president avoids impeachment attempt after most ruling-party lawmakers boycott vote