Proposed change in bankruptcy law could thwart foreclosures