Fannie Mae and Freddie Mac will let some borrowers who kept up payments as their homes lost value erase their debts by giving up the properties.