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)
Smerconish: Can Manchin's voting rights compromise sway GOP? _00031430.png
Smerconish: Can Manchin's voting rights compromise sway GOP? _00031430.png
Now playing
04:32
Smerconish: Can Manchin's voting rights compromise sway GOP?
CNN Weather
Now playing
01:35
Tropical Storm Claudette brings tornado threat to Southeast
TABRIZ, IRAN - JUNE 16: Iran presidential candidate Ebrahim Raeesi takes part in a campaign meeting with Residents of Tabriz on June 16, 2021 in Tabriz, Iran. The country's incumbent president, Hassan Rouhani, is ineligible to run again after serving two terms in office. (Photo by Meghdad Madadi ATPImages/Getty Images)
ATPImages/Getty Images Europe/Getty Images
TABRIZ, IRAN - JUNE 16: Iran presidential candidate Ebrahim Raeesi takes part in a campaign meeting with Residents of Tabriz on June 16, 2021 in Tabriz, Iran. The country's incumbent president, Hassan Rouhani, is ineligible to run again after serving two terms in office. (Photo by Meghdad Madadi ATPImages/Getty Images)
Now playing
04:11
Ultra-conservative candidate set to win Iran's presidential election
Now playing
03:28
'You know that's not true': CNN reporter corrects man who stormed Capitol
mike pence heckled at conservative conference vpx _00000918.png
CNN
mike pence heckled at conservative conference vpx _00000918.png
Now playing
02:21
Mike Pence heckled at conservative conference
YouTube/Department of Justice
Now playing
03:56
New video shows police getting punched during Capitol riot
Bay News 9
Now playing
01:11
11-year-old cross-examined by father in Florida murder trial
NNIS via AFP
Now playing
00:59
Newborn girl found abandoned in a box floating down river
FILE - This June 8, 2021 file photo shows the Supreme Court building in Washington. A Thursday, June 17, 2021 Supreme Court ruling that favored Catholic Social Services in Philadelphia was far from the constitutional gale wind that would have reshaped how courts interpret religious liberty under the First Amendment. Governmental entities are now on notice that if they want to ban discrimination against LGBTQ persons or anyone else, they had better not allow for any exceptions -- or else religious groups will have the right to ask for them, and they'll have a strong case for getting them. (AP Photo/J. Scott Applewhite)
J. Scott Applewhite/AP
FILE - This June 8, 2021 file photo shows the Supreme Court building in Washington. A Thursday, June 17, 2021 Supreme Court ruling that favored Catholic Social Services in Philadelphia was far from the constitutional gale wind that would have reshaped how courts interpret religious liberty under the First Amendment. Governmental entities are now on notice that if they want to ban discrimination against LGBTQ persons or anyone else, they had better not allow for any exceptions -- or else religious groups will have the right to ask for them, and they'll have a strong case for getting them. (AP Photo/J. Scott Applewhite)
Now playing
03:32
Obamacare has survived over 2,000 attempts to kill it
Former Republican Speaker Larry Householder speaks to the media immediately after his expulsion from the Ohio House on Wednesday, June 16, 2021, in Columbus, Ohio. The Republican-led House voted 5-21 to remove him. Householder is accused of taking money from a utility in exchange for orchestrating a multi-million dollar scheme to get him elected as speaker. He has pleaded not guilty and publicly proclaimed his innocence. (Andrew Welsh-Huggins
Andrew Welsh-Huggins/AP
Former Republican Speaker Larry Householder speaks to the media immediately after his expulsion from the Ohio House on Wednesday, June 16, 2021, in Columbus, Ohio. The Republican-led House voted 5-21 to remove him. Householder is accused of taking money from a utility in exchange for orchestrating a multi-million dollar scheme to get him elected as speaker. He has pleaded not guilty and publicly proclaimed his innocence. (Andrew Welsh-Huggins
Now playing
01:25
Ohio lawmaker expelled from state house in historic vote
This Morning
Now playing
03:22
Ted Cruz: Critical race theory is as racist as Klansmen
WKBW
Now playing
01:01
Watch world-renowned daredevil complete 320-foot high-wire walk
CNN
Now playing
02:45
Cities debate future of outdoor dining post-pandemic
CNN Weather
Now playing
02:46
Developing tropical storm takes aim at Gulf Coast
CNN
Now playing
03:26
Cattle rancher grapples with punishing drought in Western US
CNN
Now playing
03:55
See grandmother's priceless reaction after Juneteenth bill passes
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.