WASHINGTON, DC - DECEMBER 19:  U.S. President Barack Obama speaks to members of the media during his last news conference of the year in the Brady Press Briefing Room at the White House December 19, 2014 in Washington, DC. President Obama faced questions on various topics including the changing of Cuba policy, the computer hack of Sony by North Korea, his executive action on immigration and his plan on working with a Republican majority Congress.  (Photo by Chip Somodevilla/Getty Images)
Chip Somodevilla/Getty Images
WASHINGTON, DC - DECEMBER 19: U.S. President Barack Obama speaks to members of the media during his last news conference of the year in the Brady Press Briefing Room at the White House December 19, 2014 in Washington, DC. President Obama faced questions on various topics including the changing of Cuba policy, the computer hack of Sony by North Korea, his executive action on immigration and his plan on working with a Republican majority Congress. (Photo by Chip Somodevilla/Getty Images)
Now playing
01:25
TX judge blocks Obama's immigration action
US President Donald Trump poses with former communications director Hope Hicks shortly before making his way to board Marine One on the South Lawn and departing from the White House on March 29, 2018. (MANDEL NGAN/AFP/Getty Images)
MANDEL NGAN/AFP/Getty Images
US President Donald Trump poses with former communications director Hope Hicks shortly before making his way to board Marine One on the South Lawn and departing from the White House on March 29, 2018. (MANDEL NGAN/AFP/Getty Images)
Now playing
00:49
Hope Hicks spotted boarding Air Force One
CNN
Now playing
00:54
Patrick: I support impeaching Trump if ...
Now playing
02:02
Source: N. Korea hopeful for 2nd summit
CLEVELAND, OH - JULY 18:  Donald Trump Jr. listens to a speech on the first day of the Republican National Convention on July 18, 2016 at the Quicken Loans Arena in Cleveland, Ohio. (John Moore/Getty Images)
John Moore/Getty Images
CLEVELAND, OH - JULY 18: Donald Trump Jr. listens to a speech on the first day of the Republican National Convention on July 18, 2016 at the Quicken Loans Arena in Cleveland, Ohio. (John Moore/Getty Images)
Now playing
00:59
Trump Jr.: Meeting was a 'bait and switch'
Sen. Rand Paul (R-KY) speaks to members of the press on health care September 25, 2017 on Capitol Hill in Washington, DC.
Alex Wong/Getty Images
Sen. Rand Paul (R-KY) speaks to members of the press on health care September 25, 2017 on Capitol Hill in Washington, DC.
Now playing
02:15
Rand Paul deflects Russia meddling questions
tapper bolton
CNN
tapper bolton
Now playing
01:30
Tapper: Why can't Trump condemn Russia?
LONDON, ENGLAND - JULY 13: U.S. First Lady Melania Trump helps children to make poppies as she meets British military veterans known as "Chelsea Pensioners" at Royal Hospital Chelsea on July 13, 2018 in London, England. America's First Lady visited the Chelsea Pensioners while her husband, President Donald Trump, held bi-lateral talks with Theresa May at the Prime Minister's Country Residence.  The Chelsea Pensioners are British Army personnel who are cared for at at the Services retirement home at The Royal Hospital in London. (Photo by Luca Bruno - WPA Pool/Getty Images)
WPA Pool/Getty Images Europe/Getty Images
LONDON, ENGLAND - JULY 13: U.S. First Lady Melania Trump helps children to make poppies as she meets British military veterans known as "Chelsea Pensioners" at Royal Hospital Chelsea on July 13, 2018 in London, England. America's First Lady visited the Chelsea Pensioners while her husband, President Donald Trump, held bi-lateral talks with Theresa May at the Prime Minister's Country Residence. The Chelsea Pensioners are British Army personnel who are cared for at at the Services retirement home at The Royal Hospital in London. (Photo by Luca Bruno - WPA Pool/Getty Images)
Now playing
02:26
When Melania breaks from Donald Trump
Now playing
02:59
Trump urged not to tweet about 2016 meeting
Voters line up to cast their ballots at a polling station in Washington, DC, November 4, 2014, during the midterm elections.  With Senate control on the line, US Democrats hope they don't get steamrolled by Republicans in Tuesday's midterms, but most signs point toward President Barack Obama's party suffering crippling election setbacks. Recent polls show Republicans pulling ahead in the battle for power in Washington despite races in Alaska, North Carolina and other states remaining very close, and they expressed confidence in the home stretch of one of the most pivotal midterm elections in years. AFP PHOTO / Saul LOEB        (Photo credit should read SAUL LOEB/AFP/Getty Images)
SAUL LOEB/AFP/AFP/Getty Images
Voters line up to cast their ballots at a polling station in Washington, DC, November 4, 2014, during the midterm elections. With Senate control on the line, US Democrats hope they don't get steamrolled by Republicans in Tuesday's midterms, but most signs point toward President Barack Obama's party suffering crippling election setbacks. Recent polls show Republicans pulling ahead in the battle for power in Washington despite races in Alaska, North Carolina and other states remaining very close, and they expressed confidence in the home stretch of one of the most pivotal midterm elections in years. AFP PHOTO / Saul LOEB (Photo credit should read SAUL LOEB/AFP/Getty Images)
Now playing
01:33
Why voting in the US is so hard
Pastor Gary Click
POOL
Pastor Gary Click
Now playing
01:18
Pastor prays for 'lion-hearted' Donald Trump
ohio special election oconnor balderson 12 district orig vstan me cs_00010020.jpg
ohio special election oconnor balderson 12 district orig vstan me cs_00010020.jpg
Now playing
02:48
Dem or GOP? In Ohio, it's complicated
White House Counselor Kellyanne Conway speaks to reporters on the White House driveway after doing a television interview, on April 13, 2018 in Washington, DC.  (Mark Wilson/Getty Images)
Mark Wilson/Getty Images
White House Counselor Kellyanne Conway speaks to reporters on the White House driveway after doing a television interview, on April 13, 2018 in Washington, DC. (Mark Wilson/Getty Images)
Now playing
01:50
Conway breaks from Trump on media rhetoric
Now playing
01:54
Gov. Cuomo escalates legal fight with NRA
US President Donald Trump speaks during a rally at Olentangy Orange High School in Lewis Center, Ohio, on August 4, 2018. (Photo by MANDEL NGAN / AFP)        (Photo credit should read MANDEL NGAN/AFP/Getty Images)
MANDEL NGAN/AFP/Getty Images
US President Donald Trump speaks during a rally at Olentangy Orange High School in Lewis Center, Ohio, on August 4, 2018. (Photo by MANDEL NGAN / AFP) (Photo credit should read MANDEL NGAN/AFP/Getty Images)
Now playing
01:23
Trump trolls Dianne Feinstein over alleged spy
Twitter Trump Tower
Twitter
Twitter Trump Tower
Now playing
00:51
Trump defends son's meeting with Russians

Story highlights

The Obama administration says the Justice Department is expected to appeal the decision

Texas Attorney General says judge's order is "a victory for the rule of law in America"

Immigration activists say they are confident the decision will be repealed

(CNN) —  

A federal judge in Texas has temporarily blocked President Barack Obama’s executive action on immigration, which has drawn opposition from 26 states across the nation.

United States District Judge Andrew Hanen ruled late Monday night to block executive actions Obama took late last year to shield as many as 5 million undocumented immigrants from deportation. In delaying the ruling, Hanen halted Obama’s executive action, ruling that the administration had failed to comply with the Administrative Procedure Act, which calls for the White House to afford a longer notification and comment period before taking action.

The White House said in a statement early Tuesday that Obama’s actions “are well within his legal authority” and that the Justice Department has indicated “that it will appeal that decision.”

“The district court’s decision wrongly prevents these lawful, commonsense policies from taking effect,” the White House said in a statement. “The Supreme Court and Congress have made clear that the federal government can set priorities in enforcing our immigration laws — which is exactly what the President did when he announced commonsense policies to help fix our broken

Obama said Tuesday he’s confident that a Texas court’s injunction against his executive order delaying deportations for millions of immigrants will ultimately be overruled, and is preparing to implement the order under that assumption.

“The Department of Homeland Security will continue with the planning because we want to make sure that as soon as these legal issues get resolved — which I anticipate they will, in our favor — that we are ready to go,” he told reporters.

Attorney General Eric Holder called the ruling just an “interim step” in a legal process that will take some time to play out.

“This is a decision by one federal district court judge,” Holder said Tuesday at the National Press Club, adding that the Justice Department is reviewing the ruling to determine the next step.

Secretary of Homeland Security Jeh Johnson, whose department would be responsible for implementing the executive orders, said he “strongly” disagrees with the judge’s decision.

Johnson said his department would comply with the injunction while the appeals process plays out and his department will not launch the DACA expansion on Wednesday, as previously scheduled.

“We fully expect to ultimately prevail in the courts, and we will be prepared to implement DAPA and expanded DACA once we do,” Johnson said.

Obama’s decision to act unilaterally in November drew the ire of Republicans who immediately slammed the President’s actions as unconstitutional and conservatives have now been waging a battle in Congress to tie funding for the Department of Homeland Security to killing Obama’s immigration orders.

The programs at issue are deferred action programs for undocumented parents of Americans and lawful residents and expansions to the program protecting illegal immigrants who arrived in the U.S. as children – known as DAPA and DACA, respectively. Neither program had gone into effect.

Hanen issued the injunction after concluding that at least Texas has standing in federal court to pursue its lawsuit as Texas “stands to suffer direct damages from the implementation of DAPA.”

He also argues that Obama’s executive action goes beyond the scope of prosecutorial discretion by “bestowing benefits,” which is more than “non-enforcement.”

“The Court seriously doubts that the Supreme Court, in holding non-enforcement decisions to be presumptively unreviewable, anticipated that such “non-enforcement” decisions would include the affirmative act of bestowing multiple, otherwise unobtainable benefits upon an individual,” Hanen wrote.

Hanen’s decision Monday came after Texas led 25 other states in a federal lawsuit to stop the executive action, and officials swiftly welcomed the judge’s decision.

“This decision is a victory for the rule of law in America and a crucial first step in reining in President Obama’s lawlessness,” Texas Attorney General Ken Paxton said in a statement.

And Republican Sen. Ted Cruz of Texas, who has championed efforts in Congress to undo Obama’s executive action, welcomed the news on Twitter, calling the decision a “HUGE victory for rule of law.”

Texas’s senior Sen. John Cornyn, also a Republican, said in a statement Tuesday that the ruling “reinforces” what he and other opponents have claimed, “that President Obama acted outside the law.”

“Today’s victory is an important one, but the fight to reverse the President’s unconstitutional overreach is not over,” Cornyn said. “The President must respect the rule of law and fully obey the court’s ruling.”

But the Obama administration and supporters of the immigration orders were quick to counter conservative glee. Obama and his staff have long argued that the President has the legal right to take action, saying he only acted because Congress failed to pass immigration reform.

Immigration activists were quick to characterize the court injunction as a just “a bump in the road.”

“We’ve hit a speed bump on the road to the implementation of these programs, but folks should stay the course, get their documents ready, prepare to apply, because the programs will open their doors eventually,” said Karen Tumlin, Managing Attorney of the National Immigration Law Center.

Cristina Jimenez, managing director of United We Dream, insisted that the federal ruling would not stand and said Hanen, a conservative appointed by President George W. Bush,”has become known as an advocate for the harsh treatment of immigrant families.”

“Executive action protecting immigrant youth and parents is solid,” Jimenez said in a statement. “Judge Hanen’s ruling is not permanent and we are confident that it will be repealed in a higher court.”

The Texas-led coalition of states in the legal challenge are Alabama, Arizona, Arkansas, Florida, Georgia, Idaho, Indiana, Kansas, Louisiana, Maine, Michigan, Mississippi, Montana, Nebraska, Nevada, North Carolina, North Dakota, Ohio, Oklahoma, South Carolina, South Dakota, Tennessee, Texas, Utah, West Virginia and Wisconsin.

CNN’s Ariane de Vogue and Dave Aslup contributed to this report.