In a major reprieve for former President Donald Trump, sentencing on his hush-money convictions was delayed Tuesday until at least September — if ever — as the judge agreed to weigh the potential impact of a new Supreme Court ruling on presidential immunity.

Trump was scheduled to be sentenced on July 11, just before the Republican nominating convention, for his convictions in New York on charges of falsifying corporate records. He denies any wrongdoing.

The delay means the verdict will be no earlier than September 18, if it happens at all. Trump’s lawyers argue that the Supreme Court ruling not only justifies a delay in sentencing but also overturning his conviction.

“The impact of the immunity ruling sends a loud and clear message for justice in the United States,” Trump crowed on his Truth social media site after the ruling was delayed.

Using all capital letters, he claimed the Supreme Court’s decision gave him “complete acquittal” in this and other criminal cases he faces.

Manhattan prosecutors who brought the hush-money case have not yet commented on the sentencing delay.

While the Sept. 18 date falls well after this month’s Republican National Convention, where Trump will formally accept the party’s nomination for president this year, it is much closer to Election Day, which could push the issue to the top of voters’ agendas just as they are seriously focusing on the race. Because of the timelines for absentee ballots in certain states, some voters may have already cast their ballots before anyone knows whether the former president will have to spend time in jail or remain under house arrest.

The delay caps a string of political and legal victories for Trump in recent days, including the Supreme Court’s immunity ruling and a debate widely seen as a disaster for Democratic President Joe Biden.

The immunity decision all but shuts the door on the possibility that Trump could stand trial in Washington before November’s vote in his 2020 election interference case. The timeline itself is a victory for the former president, who has sought to delay his four criminal trials until after the vote.

An appeals court recently stayed a separate election interference case against Trump in Georgia; no trial date has been set. His case over secret federal documents in Florida remains tied up in pre-trial disputes, resulting in an indefinite stay of the case.

The Supreme Court’s ruling Monday gave presidents broad immunity protections, while also prohibiting prosecutors from citing official acts as evidence to prove that a president’s unofficial actions violated the law.

The Supreme Court ruled that former presidents are absolutely immune from prosecution for actions within their core constitutional duties, such as interactions with the Justice Department, and at least presumptive for all other official actions. The justices left intact the long-standing principle that there is no immunity for purely personal actions.

It is not yet clear what implications the ruling will have for the hush money case in New York.

The basis for it involved allegations that a pre-presidential Trump participated in a scheme to suppress sex stories he feared would harm his 2016 campaign. But the real allegations involved payments made in 2017 to his then-attorney, Michael Cohen, who had paid hush money on Trump’s behalf. Trump was president when he signed the relevant checks to Cohen.

Trump’s lawyers tried unsuccessfully before the trial to suppress certain evidence they said related to official acts, including social media posts he made as president.

New York District Judge Juan M. Merchan said in April that it “would be difficult to convince me that something that he voluntarily tweeted to millions of people cannot be used in court if it is not presented as a crime. It is simply presented as an act, something that he did.”

When Trump unsuccessfully tried to move the hush-money case from state court to federal court last year, U.S. District Judge Alvin Hellerstein rejected the former president’s claim that the allegations in the hush-money suit related to official duties.

“The evidence overwhelmingly suggests that the matter was a purely personal one for the president — a cover-up of an embarrassing event,” Hellerstein wrote last year.

Hours after the Supreme Court’s ruling on Monday, Trump’s attorney Merchan asked to overturn the jury’s guilty verdict and delay sentencing so they could consider what impact the Supreme Court’s ruling might have on the hush-money case.

Merchan wrote that he will rule on September 6 and that the next date in the case will be September 18, “if that is still necessary.”

In the statement of defense filed Monday, Trump’s lawyers argued that Manhattan prosecutors had placed “grossly biased emphasis on evidence of official conduct,” including Trump’s social media posts and testimony about meetings in the Oval Office.

Prosecutors responded that they believed these arguments were “without merit” but that they would not oppose a two-week stay of sentencing while the judge considered the case.

Trump was convicted on May 30 on 34 counts of falsifying business records, an effort prosecutors say was made to cover up a $130,000 hush-money payment to porn star Stormy Daniels just before the 2016 presidential election.

Daniels alleges she had a sexual encounter with Trump in 2006 after meeting him at a celebrity golf tournament in Lake Tahoe. Trump has repeatedly denied the claim, saying during his June 27 debate with Biden, “I did not have sex with a porn star.”

Prosecutors said the Daniels payment was part of a broader scheme to buy the silence of people who during the campaign may have publicly spread embarrassing stories alleging that Trump had had extramarital sex. Trump said they were all false.

Cohen paid Daniels and later received compensation from Trump, whose company recorded the fees as legal fees.

Trump’s defense argued that the payments were indeed for legitimate work and therefore properly categorized.

Falsifying corporate records carries a maximum penalty of four years in prison. Other possible penalties include probation, a fine or a suspended sentence, with Trump required to stay out of trouble to avoid additional punishment. Trump is the first former president to be convicted of a crime.

Contributing writers were Associated Press writers Michael R. Sisak in Fort Pierce, Florida, Jill Colvin in New York and Eric Tucker in Washington.