A federal judge is ordering the New York City Fire Department to implement racial quotas to address grievances from minorities who failed entrance exams.

On July 5 in Brooklyn, Nicholas G. Garaufis, a Clinton-appointed judge for the Eastern District of New York, issued a ruling that requires two of every five newly hired fireman to be black and one of every five, Hispanic — until the department has fulfilled the court-ordered quota of 186 black and 107 Hispanic hires.