Mr. Mueller is examining whether the president fired Mr. Comey as part of a broader effort to alter the direction of the Federal Bureau of Investigation’s probe into Russia’s alleged meddling in the 2016 presidential election and whether associates of Mr. Trump colluded with Moscow, the person said.