UK banks win legal case over past loan complaints