The Education Department said it will forgive $39 billion in federal student loans for more than 804,000 borrowers.