The breakthrough was an agreement to protect the most vulnerable indebted homeowners from foreclosure, while buffering banks from the worst bad loans.