FBI officials were so alarmed by President Donald Trump’s behavior after he fired former FBI Director James Comey that they started investigating whether he was working against American interests.