A retired Los Angeles County judge who ordered that a lawyer be paid in $10 gift cards from a women’s fashion store as part of a legal settlement was censured Tuesday and barred from presiding over future court cases.

The Commission on Judicial Performance accused Brett C. Klein of showing bias, abusing his authority and “grandstanding to the press” in a class-action lawsuit that he briefly presided over last year.

The lawsuit was brought by a woman who accused a clothing store chain of violating privacy laws by asking for personal identification information when customers used credit cards to make purchases. As part of a settlement, which had been given preliminary approval by a different judge, the two sides agreed that Windsor Fashions would pay the customer who brought the suit $2,500 and her attorney $125,000.

Other customers who came forward as part of the suit would each be given a $10 gift voucher, according to state disciplinary records. But Klein, who was asked to preside over a final hearing in the case when a colleague fell ill, made sarcastic remarks to the attorneys and changed the terms of the settlement after the hearing, disciplinary records show.