Justice official quits amid Trump attacks