Fed plan could save millions from foreclosure