Congress has passed a measure that would allow bankruptcy judges to change the terms of mortgages to help strapped homeowners. Supporters say it will keep people in their homes while the banking industry says it will prompt lenders to raise rates.