Court ruling on 'lending that traps consumers' hailed