WASHINGTON (Reuters) - U.S. President Donald Trump last June ordered Special Counsel Robert Mueller fired but backed down after the White House counsel threatened to resign rather than follow his directive, The New York Times reported on Thursday, citing four people told of the matter.

White House lawyers and press officials did not immediately reply to Reuters requests for comment.

Mueller, who is investigating allegations of Russian meddling in the 2016 U.S. election, learned of the incident in recent months as his investigators interviewed current and former senior White House officials in an inquiry into whether the president obstructed justice, the Times reported.

Amid media reports that Mueller was looking into a possible obstruction case, Trump argued that the former Federal Bureau of Investigation director had three conflicts of interest that disqualified him from overseeing the probe, two of the people said, according to the Times report.

First, Trump said that a dispute years ago over fees at Trump National Golf Club in Sterling, Virginia, had led Mueller to resign his membership, the newspaper reported.

The president also said Mueller could not be impartial because he had most recently worked for a law firm that previously represented the president’s son-in-law, Jared Kushner. Trump also said Mueller had been interviewed to return as the director of the Federal Bureau of Investigation the day before he was appointed special counsel in May, the Times reported, citing the two people.

White House counsel Donald McGahn said he would quit rather than follow through on the order to fire Mueller, the Times reported, citing the people.

McGahn disagreed with the president’s case for dismissing Mueller and told senior White House officials that firing him would have a catastrophic effect on Trump’s presidency and raise questions about whether the White House was trying to obstruct the Russia probe, according to the people cited by the Times.

McGahn also told White House officials that Trump would not follow through on the dismissal on his own, and the president then backed off his demand, according to the people, who the Times said spoke on condition of anonymity because they did not want to be identified discussing a continuing investigation.

Mueller was appointed special counsel in May by the Justice Department after Trump fired FBI Director James Comey, who was leading the agency’s Russia investigation. Russia has denied any meddling and Trump has denied any collusion.

Comey’s firing is central to whether Trump may have committed obstruction of justice.

Trump said on Wednesday he would be willing to be interviewed under oath by Mueller, and according to sources with knowledge of the investigation, Trump’s attorneys have been talking to Mueller’s team about an interview.