The highest court in Massachusetts ruled against Wells Fargo & Co. and U.S. Bancorp in two foreclosure cases that cast doubt over whether some home loans were properly handled when packaged into securitizations.

Justices in the state's Supreme Judicial Court upheld a lower court's decision to void foreclosure sales of two homes in Springfield, because owners of the loans couldn't prove that the mortgages had been assigned to them. Both loans were assembled into mortgage-backed securities sold to investors.

Bank...