The New York City Police Department has long drawn fire from civil rights groups and legal advocates over allegations of racial profiling, discriminatory practices, and deeply rooted systemic bias.