Ex-police officer wins Court of Appeal ruling against 'non-crime hate incidents'