Two former FBI agents have filed a lawsuit alleging that they were fired solely because they were assigned to investigate efforts to overturn the 2020 election.