"U.S. banks and state attorneys general, seeking to avoid $17 billion in court claims over faulty foreclosures, are discussing a settlement framework that may let firms choose from a menu of options for helping borrowers, two people briefed on the talks said."