South Korea's embattled President Yoon Suk Yeol has avoided an opposition-led attempt to impeach him over his short-lived imposition of martial law.