The agreement will also protect borrowers from being hit with high tax bills on debt due to be forgiven this year.