A magistrate who launched a personal attack on a court worker after clashing over his expenses has been handed a formal warning by the Lady Chief Justice.