Supreme Court rules on sale-and-rent-back mortgage litigation