The FBI said two men posed as Department of Homeland Security officials and gave lavish gifts to secret service agents, including one who worked on the first lady’s security team.