Solicitors' firm accepts defeat in battle to save court