The Justice Department appointed Robert Mueller, a former FBI director, to serve as special counsel for the investigation into Russia’s election hacking.