A prosecutor’s drive to indict James Comey trampled over the Justice Department’s long tradition of keeping a distance from politics and the White House, and raised the prospect of more arbitrary charges.