Supreme Court: Mortgage firm misstepped in locking out homeowner