After years of criticism from civil-rights groups for singling out Muslims and Latinos, the Justice Department has expanded the definition of racial profiling to include religion, national origin, gender, and sexual orientation.