The Court of Appeal has held that the decision to reduce officer head count "to the fullest extent" by forcibly retiring police officers with 30 years' service was justified.