An investigation led by eight states, including Connecticut and Pennsylvania, ended with a for-profit education company changing how it does business and entering a $493.7 million settlement.

The settlement agreement announced Thursday requires Illinois-based Career Education Corp. to change its enrollment practices and forgo collection of $493.7 million in debt owed by 179,529 students nationally.