A state appeals court has ruled that qualified immunity applied to the decision-making of a police officer who, according to court records, took to the ground an arguably emotionally disturbed man outside a Manhattan supermarket, moments before the man then brandished a knife and charged forward as two other officers shot and killed him.