A defiant Yoon Suk Yeol has been taken into custody, ending a six-week standoff.