Hours before he was scheduled to retire in 2018, Andrew G. McCabe, then the F.B.I.’s deputy director, was fired by the Justice Department, depriving him of his pension and prompting cheers from President Donald J. Trump, who had been hounding him over his role in the Russia investigation. On Thursday, the department reversed Mr. McCabe’s firing, settling a lawsuit he filed asserting that he was dismissed for political reasons. Under the settlement, Mr. McCabe, 53, will be able to officially retire, receive his pension and other benefits, and get about $200,000 in missed pension payments. In addition, the department agreed...