The White House on Tuesday. President Trump, according to people close to him, had been openly talking about firing James B. Comey for at least a week.