US President Donald Trump speaks during the 9th Shale Insight Conference at the David L. Lawrence Convention Center on October 23, 2019, in Pittsburgh, Pennsylvania. (Photo by Brendan Smialowski / AFP) (Photo by BRENDAN SMIALOWSKI/AFP via Getty Images)
BRENDAN SMIALOWSKI/AFP/AFP via Getty Images
US President Donald Trump speaks during the 9th Shale Insight Conference at the David L. Lawrence Convention Center on October 23, 2019, in Pittsburgh, Pennsylvania. (Photo by Brendan Smialowski / AFP) (Photo by BRENDAN SMIALOWSKI/AFP via Getty Images)
Now playing
01:54
Court orders Trump to turn over tax returns
Now playing
02:48
GOP governor calls Trump's RNC remarks 'divisive'
rep jim clyburn georgia voting law jim crow sot sotu vpx_00000000.png
rep jim clyburn georgia voting law jim crow sot sotu vpx_00000000.png
Now playing
02:13
Rep. Clyburn blasts GA voting law: It's the 'new Jim Crow'
Joe Manchin
CNN
Joe Manchin
Now playing
02:03
'I never thought in my life ...' Why Manchin won't walk away from bipartisanship
Gaetz speaks to members of the media outside the hearing Michael Cohen, former attorney and fixer for President Donald Trump, testifies at before the House Committee on Oversight and Reform at Rayburn House Office Building February 27, 2019 on Capitol Hill in Washington, DC. Last year Cohen was sentenced to three years in prison and ordered to pay a $50,000 fine for tax evasion, making false statements to a financial institution, unlawful excessive campaign contributions and lying to Congress as part of special counsel Robert Mueller's investigation into Russian meddling in the 2016 presidential elections.
Alex Wong/Getty Images
Gaetz speaks to members of the media outside the hearing Michael Cohen, former attorney and fixer for President Donald Trump, testifies at before the House Committee on Oversight and Reform at Rayburn House Office Building February 27, 2019 on Capitol Hill in Washington, DC. Last year Cohen was sentenced to three years in prison and ordered to pay a $50,000 fine for tax evasion, making false statements to a financial institution, unlawful excessive campaign contributions and lying to Congress as part of special counsel Robert Mueller's investigation into Russian meddling in the 2016 presidential elections.
Now playing
06:11
'Bombastic, antagonistic, unapologetic': A look at Gaetz's political career
Former House Speaker John Boehner attends a ceremony to unveil a portrait of himself on Capitol Hill, Tuesday, Nov. 19, 2019 in Washington.
Michael A. McCoy/AP
Former House Speaker John Boehner attends a ceremony to unveil a portrait of himself on Capitol Hill, Tuesday, Nov. 19, 2019 in Washington.
Now playing
02:42
Boehner says Republican colleague held 10-inch knife to his throat outside House floor
President Joe Biden, accompanied by Vice President Kamala Harris, and Attorney General Merrick Garland, speaks about gun violence prevention in the Rose Garden at the White House, Thursday, April 8, 2021, in Washington.
Andrew Harnik/AP
President Joe Biden, accompanied by Vice President Kamala Harris, and Attorney General Merrick Garland, speaks about gun violence prevention in the Rose Garden at the White House, Thursday, April 8, 2021, in Washington.
Now playing
02:05
Biden calls for ban on assault weapons
CNN
Now playing
02:22
Biden: High-speed internet is infrastructure
AFP/Getty Images
Now playing
03:24
Donald Trump breaks his silence on Matt Gaetz
CNN/WLOX
Now playing
01:43
'He says the quiet part out loud': Borger reacts to GOP election official's remark
AFP/Getty Images
Now playing
02:30
Haberman: Trump had to be talked out of defending Matt Gaetz
CNN
Now playing
03:26
Georgia's Lt. governor says elections law was a result of Trump's misinformation
Now playing
02:38
GOP lawmakers can't give examples of why states need anti-transgender sports bills
CNN
Now playing
03:04
Avlon reacts to McConnell's advice to corporations
WASHINGTON, DC - APRIL 06:  U.S. President Joe Biden delivers remarks on the state of vaccinations in the U.S. in the State Dining Room of the White House April 6, 2021 in Washington, DC. President Biden announced that states should make all adults eligible for COVID-19 vaccine by April 19.  (Photo by Alex Wong/Getty Images)
Alex Wong/Getty Images North America/Getty Images
WASHINGTON, DC - APRIL 06: U.S. President Joe Biden delivers remarks on the state of vaccinations in the U.S. in the State Dining Room of the White House April 6, 2021 in Washington, DC. President Biden announced that states should make all adults eligible for COVID-19 vaccine by April 19. (Photo by Alex Wong/Getty Images)
Now playing
01:12
'Smarten up': Biden admonishes states' restrictive voting laws
WAVE
Now playing
01:27
'It's stupid': McConnell's warning for corporate America
(CNN) —  

President Donald Trump lost an appeal Monday to keep his tax returns from a Manhattan grand jury, setting up a potential Supreme Court challenge.

A three-judge panel for the Second Circuit Court of Appeals said “presidential immunity does not bar a state grand jury from issuing a subpoena in aid of its investigation of potential crimes committed by persons within its jurisdiction, even if that investigation may in some way implicate the president.”

The court also noted that “the only question before us is whether a state may lawfully demand production by a third party of the President’s personal financial records for use in a grand jury investigation while the President is in office.” The judges added that “we hold that any presidential immunity from state criminal process does not bar the enforcement of a subpoena.”

Trump sued the Manhattan District Attorney’s office to block a subpoena it sent to his long time accounting firm Mazars USA seeking eight years of tax returns. Attorneys for Trump argued a President is immune from criminal investigations, a claim the district judge dismissed. Trump then appealed that decision.

The appeals court ruling gives a green light, in theory, for investigators to obtain the President’s tax returns, but Trump’s attorney Jay Sekulow said the President will continue his appeal.

“The decision of the Second Circuit will be taken to the Supreme Court,” Sekulow said in a statement. “The issue raised in this case goes to the heart of our Republic. The constitutional issues are significant.”

Trump’s lawyers have 10 days to appeal to the Supreme Court under an agreement it previously reached with Manhattan District Attorney Cy Vance’s office. Under the deal, Vance’s office would not move to enforce the subpoena so long as Trump’s lawyers agree to appeal to the Supreme Court in the current term.

The district attorney’s office also agreed not to enforce the subpoena until the Supreme Court either declines to hear the case or reaches a decision, whichever comes first. Should Vance prevail and ultimately obtain Trump’s tax returns they would not be publicly released under grand jury secrecy rules. The only likely way the returns would become public would be in a trial or court proceeding.

Vance’s office declined to comment Monday on the panel’s decision.

The appeals court ruling affirmed the decisions by US District Judge Victor Marrero who dismissed Trump’s “extraordinary” claim that any occupant of the White House enjoys “absolute immunity from criminal process of any kind.” Marrero said in a 75-page opinion that such a position “would constitute an overreach of executive power.”

The judge described Trump’s assertion of immunity as “repugnant to the nation’s governmental structure and constitutional values.”

Trump has broken previous presidential precedent by refusing to release his tax returns.

This story has been updated.

CNN’s Evan Perez contributed to this report.