The federal government appears to be on the verge of announcing a massive plan to help homeowners struggling to avoid foreclosure. The plan could involve hundreds of billions of dollars in government loan guarantees.