The Education Department said Thursday that it will cancel the loans of 28,000 student borrowers who attended a now-defunct for-profit chain of cosmetology schools.