Judge Aquilina loses appeal in Sheriff lawsuit