A New Jersey appellate court has upheld the firing of a former police officer in Morris County after an investigation showed he improperly accessed the personal information of thousands of motorists.