A police officer in Morris County has filed a lawsuit against the borough where he works, alleging racial and sexual harassment by fellow officers and retaliation after reporting the conduct.