Goldman Sachs, Morgan Stanley and two other banks may agree as soon as this week to settle claims over botched foreclosures in an accord similar to one reached with 10 loan servicers yesterday, two people briefed on the discussions said.