Yan was placed under house arrest, her relatives were either killed or exiled, and her eunuch allies were slaughtered