UK regulator behaved ‘unfairly’ over mis-selling scandal redress scheme, court told