Appeals court rules against Baltimore Police Department aeri