A federal judge has ordered that an official monitor be put in place to prevent discrimination in the hiring of New York City firefighters.