FBI agents and the Justice Department reached an agreement to avoid publication of a list of agents who had worked on Capitol riot investigations.