Chambers clerk loses court battle