Ulster Bank has lost its appeal against findings by the Financial Services and Pensions Ombudsman that two borrowers were entitled to tracker mortgage refunds and compensation.
The decision by the High Court could have implications for thousands of other people who borrowed money from Ulster Bank.
Ms Justice Marguerite Bolger said she had found no evidence of any error or any significant error of law by the FSPO and dismissed the bank's appeals.
The case related to borrowers who switched to fixed rates on their mortgages and were refused tracker rates when they wanted to revert back.
The judge said the ombudsman’s decision to uphold the complaints was valid and the bank’s conduct was contrary to its contractual obligations and its obligations under the Consumer Protection Code.
When the case was heard last year, lawyers for Ulster Bank told the court the cases could affect thousands of customers and trigger enormous financial consequences for the bank.