Appeals court dismisses major debt collection suit in win for banks