President Barack Obama has hit back at a ruling in Texas that brought to a halt his controversial migrant plan.
A federal judge sided with 26 US states, ruling against the president’s attempt to spare up to five million undocumented people from deportation.
The first stage was due to start on Wednesday, so the process is on hold with legal battles ahead.
But the president said he was confident the issue would be resolved in the White House’s favour.
“With respect to the ruling … I disagree with it,” Mr Obama told reporters in the Oval Office.
“I think the law is on our side and history is on our side.”
White House officials say they are are “on very strong legal footing” and could seek an emergency stay of the decision within days.
The Justice Department is also going to appeal but until then, the administration has suspended its plans to give undocumented migrants the chance to apply for legal status.
About 270,000 undocumented immigrants who came to the US as children and have lived in the US since 2010 were hours away from being eligible to apply.