The Justice Department’s top civil rights enforcer resigned Thursday following more than a year of criticism that his office filled its ranks with conservative loyalists instead of experienced attorneys.

Assistant Attorney General Wan J. Kim was the first immigrant and first Korean-American to head the department’s civil rights division — a post he held for just over two years.