President Trump filed a federal lawsuit against the Manhattan district attorney Thursday, his attorney said, seeking to stop him from subpoenaing Trump’s tax returns in a probe of hush-money payments during the 2016 election.

In the suit, Trump argues that District Attorney Cyrus Vance is conducting a criminal investigation of him, which he contends is not allowed under the Constitution.

That’s because the Constitution prohibits any prosecutor from investigating any sitting president for any criminal wrongdoing, he says.

If that were permitted, Trump says, it could give local authorities too much power to hamstring a president’s actions. “All you need is one prosecutor, one trial judge, the barest amount of probable cause, and a supportive local constituency, and you can shut down a presidency,” Trump’s complaint says, quoting law professor Jed Shugerman, according to a copy of the lawsuit posted online by CNN.

Instead, Trump argued, the power to investigate presidents is invested in Congress, which has the power to impeach and remove presidents for “high crimes and misdemeanors.”

His suit also quoted an article by Supreme Court Justice Brett M. Kavanaugh — written in 2009, when Kavanaugh was an appeals court judge — saying that “a President who is concerned about an ongoing criminal investigation is almost inevitably going to do a worse job as President.”

On Thursday, U.S. District Judge Victor Marrero ordered a hearing on the lawsuit for Sept. 25. Vance agreed to delay enforcement of the subpoena until after that hearing.

The suit is the latest in a string of similar lawsuits by Trump seeking to block investigations of his finances by prosecutors and New York authorities.

In this case, Vance subpoenaed Mazars USA, Trump’s longtime accounting firm, Trump’s attorneys said. He asked for eight years’ worth of tax returns for Trump and his businesses, plus a number of other financial documents, according to Trump’s complaint.

The investigation appears to focus on payments to two women, Stormy Daniels and Karen McDougal, who say they had affairs with Trump years ago.

Daniels, an adult-film actress, was paid $130,000 by then-Trump attorney Michael Cohen for her silence before the 2016 election. Cohen said that the payments were made at Trump’s direction and that Trump’s company reimbursed him. Cohen is now serving a three-year prison sentence after pleading guilty to campaign finance violations related to the hush-money payments, as well as other offenses.

McDougal was paid $150,000 by American Media Inc., the publisher of the National Enquirer. The company acknowledged that payment last year and agreed to cooperate with prosecutors.

Trump has said he did not have affairs with Daniels or McDougal. Trump, his aides and his attorneys have made contradictory statements about the president’s knowledge of the payments. Still, his attorneys have repeatedly denied that Trump committed wrongdoing.

“No campaign violations were engaged in by the president,” Jay Sekulow, Trump’s personal attorney, said this month.

In the lawsuit filed Thursday, Trump said that Vance did not need eight years of his tax returns to examine whether any laws were broken by the 2016 payments. In the lawsuit, Trump calls Vance’s subpoena to Mazars “a bad faith effort to harass the President by obtaining and exposing his private financial information, not a legitimate attempt to enforce New York law.”

Sekulow said in a brief statement Thursday that “we have filed a lawsuit this morning in Federal Court on behalf of the President in order to address the significant constitutional issues at stake in this case.”

Danny Frost, a spokesman for Vance, said only that “we have received the plaintiff’s complaint and will respond as appropriate in court.”

In April, Trump filed a similar lawsuit against Mazars, seeking to stop it from complying with a subpoena from the House Oversight Committee. In July, Trump sued the House Ways and Means Committee and New York state to block the state from using a newly passed law to share Trump’s state tax returns with Congress.

Both cases are pending.

Also Thursday, a federal judge in Sacramento issued a temporary injunction against a law that would bar presidential candidates from appearing on California’s 2020 primary ballot if they decline to release their tax returns.

Soon after the measure was signed into law by California Gov. Gavin Newsom (D) in July, Trump and the Republican National Committee filed lawsuits challenging it, arguing that California was attempting to “circumvent the U.S. Constitution.”

Sekulow said in a statement that the president’s legal team was “encouraged” by U.S. District Judge Morrison England Jr.’s decision and looked forward to the formal ruling.

“It remains our position that the law is unconstitutional because states are not permitted to add additional requirements for candidates for president, and that the law violates the Constitution,” Sekulow said.

Carol D. Leonnig and Felicia Sonmez contributed to this report.