A multi-billion-dollar mishap has put South Carolina under federal investigation – and now cost a top state official his job. How did we get here?