Two former FBI officials have reached a tentative settlement with the Justice Department to resolve claims that their privacy was violated when the department leaked to the news media text messages that they had sent one another that disparaged former President Donald Trump.