A state appeals court on Tuesday upheld a lower court decision ordering the New York Police Department to turn over years of data identifying the race of suspects shot at by the police.