Core Scientific wins court approval to enact reorganization plan, exit bankruptcy