Trump offshore drilling executive order sot_00000000.jpg
Trump offshore drilling executive order sot_00000000.jpg
Now playing
04:19
Trump signs offshore drilling executive order (2017)
AURORA, CO - DECEMBER 15: (EDITORIAL USE ONLY) Rocky Mountain Regional VA Medical Center investigational pharmacy technician Sara Berech prepares a dose of the Johnson & Johnson COVID-19 vaccine for a clinical trial on December 15, 2020 in Aurora, Colorado. The Johnson & Johnson vaccine could be submitted for emergency use by late January and is the only vaccine among leading candidates given as a single dose. (Photo by Michael Ciaglo/Getty Images)
PHOTO: Michael Ciaglo/Getty Images
AURORA, CO - DECEMBER 15: (EDITORIAL USE ONLY) Rocky Mountain Regional VA Medical Center investigational pharmacy technician Sara Berech prepares a dose of the Johnson & Johnson COVID-19 vaccine for a clinical trial on December 15, 2020 in Aurora, Colorado. The Johnson & Johnson vaccine could be submitted for emergency use by late January and is the only vaccine among leading candidates given as a single dose. (Photo by Michael Ciaglo/Getty Images)
Now playing
02:46
FDA says Johnson & Johnson vaccine is safe and effective
AUGUSTA, GEORGIA - NOVEMBER 15: Tiger Woods of the United States looks on from the third tee during the final round of the Masters at Augusta National Golf Club on November 15, 2020 in Augusta, Georgia. (Photo by Patrick Smith/Getty Images)
PHOTO: Patrick Smith/Getty Images
AUGUSTA, GEORGIA - NOVEMBER 15: Tiger Woods of the United States looks on from the third tee during the final round of the Masters at Augusta National Golf Club on November 15, 2020 in Augusta, Georgia. (Photo by Patrick Smith/Getty Images)
Now playing
02:43
Tiger Woods' team gives an update on his condition
Connolly
PHOTO: CNN
Connolly
Now playing
03:51
'I will not be lectured' on bipartisanship: Lawmaker fires back at Jim Jordan
PHOTO: KCAL/KCBS
Now playing
01:37
Official details speaking with Woods in moments following accident
PHOTO: CNN
Now playing
04:15
Experts: Former CIA agent victim of microwave weapon in Moscow
Trump supporters clash with police and security forces as people try to storm the US Capitol on January 6, 2021 in Washington, DC. Demonstrators breeched security and entered the Capitol as Congress debated the 2020 presidential election Electoral Vote Certification.
PHOTO: Brent Stirton/Getty Images
Trump supporters clash with police and security forces as people try to storm the US Capitol on January 6, 2021 in Washington, DC. Demonstrators breeched security and entered the Capitol as Congress debated the 2020 presidential election Electoral Vote Certification.
Now playing
04:34
This is what we learned from Capitol riot hearing
Now playing
02:08
Cabinet secretary explains why he took on challenging role
Angelo Quinto
PHOTO: Law Offices of John Burris
Angelo Quinto
Now playing
02:00
Man dies after police kneel on his neck, family says
PHOTO: AFP/Getty Images
Now playing
04:54
Ocasio-Cortez rips Democrat's doubts about Biden nominee
Then-President Donald Trump addresses supporters during a Make America Great Again rally in Erie, Pennsylvania, October 20, 2020.
PHOTO: SAUL LOEB/AFP/Getty Images
Then-President Donald Trump addresses supporters during a Make America Great Again rally in Erie, Pennsylvania, October 20, 2020.
Now playing
02:44
What Trump's released tax records mean for DA's criminal case
From left, President Joe Biden, First Lady Jill Biden, Vice President Kamala Harris and her husband Doug Emhoff, bow their heads during a ceremony to honor the 500,000 Americans that died from COVID-19, at the White House, Monday, Feb. 22, 2021, in Washington. (AP Photo/Evan Vucci)
PHOTO: Evan Vucci/AP
From left, President Joe Biden, First Lady Jill Biden, Vice President Kamala Harris and her husband Doug Emhoff, bow their heads during a ceremony to honor the 500,000 Americans that died from COVID-19, at the White House, Monday, Feb. 22, 2021, in Washington. (AP Photo/Evan Vucci)
Now playing
05:45
Biden leads nation in mourning 500,000 US Covid-19 deaths
PHOTO: NASA
Now playing
01:15
Watch the Perseverance rover's first footage of Mars
donald trump juicio politico violencia capitolio presidente eeuu gobierno senado aristegui mexico roberto izurieta republicanos democratas_00002909.png
donald trump juicio politico violencia capitolio presidente eeuu gobierno senado aristegui mexico roberto izurieta republicanos democratas_00002909.png
Now playing
02:48
Supreme Court allows release of Trump tax returns
trump impuestos fiscal nueva york eeuu corte suprema investigacion dusa juan carlos lopez_00021006.png
trump impuestos fiscal nueva york eeuu corte suprema investigacion dusa juan carlos lopez_00021006.png
Now playing
04:06
Trump fires back at Supreme Court ruling in statement
Now playing
02:27
Bash: Cruz looking for Fox News sound bite at Garland hearing
Now playing
04:34
See what has happened to Trump's DC hotel after his loss
(CNN) —  

A federal judge in Alaska has ruled an executive order by President Donald Trump allowing offshore oil drilling of tens of millions of acres in the Arctic Ocean is “unlawful and invalid.”

The ruling on Friday from US District Court Judge Sharon Gleason means a drilling ban for much of the Arctic Ocean off of Alaska will go back into effect.

On April 28, 2017, Trump issued an executive order reversing three memoranda and one executive order in 2015 and 2016 by then President Barack Obama withdrawing about 125 million acres of the Arctic Ocean from oil leasing. The Obama order also prevented drilling in certain parts of the Atlantic Ocean.

That action by the Obama Administration prompted strong criticism from some Alaska politicians and oil companies that wanted to drill there.

Ten environmental groups, including Greenpeace, the League of Conservation Voters, Sierra Club and The Wilderness Society, filed suit to block Trump’s executive order. Defending the order were the Trump administration, the American Petroleum Institute and the state of Alaska.

Gleason ruled Friday that the Outer Continental Shelf Lands Act only allows a president to withdraw lands from consideration by the Interior Department for leasing – not to revoke a prior withdrawal. She ruled Congress is the only institution that can reverse a president’s decision with regard to this matter, saying Trump’s executive order “is unlawful, as it exceeded the President’s authority.”

“The wording of President Obama’s 2015 and 2016 withdrawals indicates that he intended them to extend indefinitely, and therefore be revocable only by an act of Congress,” Gleason said.

Gleason added the withdrawals in 2015 and 2016 “will remain in full force and effect unless and until revoked by Congress.”

An Interior Department spokeswoman declined to comment citing pending litigation.

“While we disagree with the decision, our nation still has a significant opportunity before us in the development of the next offshore leasing plan to truly embrace our nation’s energy potential and ensure American consumers and businesses continue to benefit from U.S. energy leadership,” a spokesman for the American Petroleum Institute said in a statement to CNN.

League of Conservation Voters president Gene Karpinski touted the environmentalist win in a statement marking the latest court ruling against a Trump administration environmental move.

“This victory shows that no one, not even Trump, is above the law,” Karpinski said in a statement. “Offshore drilling and the associated threat of devastating oil spills puts coastal economies and ways of life at risk while worsening the consequences of climate change. President Trump wanted to erase all the environmental progress we’ve made, but we fought back and we won.”

The League of Conservation Voters also said the ruling would force the Trump administration to re-examine its five-year leasing program for the Outer Continental Shelf.

An appeal to the Ninth Circuit Court of Appeals is considered likely in the case.

CNN’s Margo Snipes contributed to this report.