Immigration activists rally outside the U.S. Supreme Court as justices hear argumentsReuters

President BarackObama's bid to save hisplanto spare millions of immigrants in the country illegally from deportation and give them work permits ran into trouble on Monday at the U.S. SupremeCourtin a case testing the limits of presidential power.

Thecourt, with four conservative justices and four liberals, seemed divided along ideological lines during 90 minutes of arguments in the case brought by 26 states led by Texas that sued to blockObama's unilateral 2014 executive action that bypassed Congress.

Liberal justices voiced support forObama's action. The conservatives sounded skeptical. A 4-4 decision would be a grim defeat forObamabecause it would uphold lowercourtrulings that threw out his action last year and doom his quest to revamp a U.S.immigrationpolicy he calls broken.

RELATED:Obama immigration action goes before Supreme Court


More than a thousand people in favor ofObama's action staged a raucousdemonstration outside the white marblecourthouse on a sunny spring day, with cheery mariachi music from a red-and-black clad band filling the air. A smaller group ofObamacritics staged their own rally.

In order to win,Obamawould need the support of one of thecourt's conservatives, most likely Chief Justice John Roberts or Anthony Kennedy. But they both at times hit theObamaadministration's lawyer, U.S. Solicitor General Donald Verrilli, with tough questions.

Kennedy expressed concern thatObamahad exceeded its authority by having the executive branch setimmigrationpolicy rather than carry out laws passed by Congress.

"It's as if the president is setting the policy and the Congress is executing it. That's just upside down," Kennedy said.

A ruling is due by the end of June.

Obama'splanwas tailored to let roughly 4 million people - those who have lived illegally in the United States at least since 2010, have no criminal record and have children who are U.S. citizens or lawful permanent residents - get into a program that shields them from deportation and supplies work permits.

Obamasaid the program, called Deferred Action for Parents of Americans and Lawful Permanent Residents (DAPA), was aimed at preventing families from being torn apart.

The case comes during a heated presidential campaign in which the statusof the roughly 11 million immigrants in the United States illegally, most of them from Mexico and other Latin American nations, has been a central theme.Immigrationis also a global concern, with Europe now struggling with a flood of immigrants fleeing violence in Syria, Iraq and elsewhere.

The Republican-governed states that filed suit asserted that the Democratic president overstepped his authority provided in the Constitution while his administration said he merely provided guidance on how to enforce deportation laws.

A 4-4 ruling is possible because there are only eight justices following February's death of conservative Antonin Scalia.

RELATED:‘White Privilege’ under microscope at conference in Philly


One possible compromise outcome would be that thecourtcould upholdObama'splanin part while leaving some legal questions unresolved, including whether the government can provide work permits to eligible applicants.

Obamawould also win if the justices decide the states had no legitimate grounds to sue. Texas said it had "standing" to sue because it would be hurt by the additional costs it would incur by providing driver's licenses to those given legal status.

Liberal Justice Ruth Bader Ginsburg noted the "basic problem" that the government lacks the resources to deport everyone in the country illegally, meaning it must set priorities.

"There are these people who are here to stay, no matter what," Ginsburg said.

Liberal Justice Sonia Sotomayor criticized Texas' argument about the economic harm caused byObama's action, saying millions of immigrants "are here in the shadows" and will affect the economy "whether we want (them) to or not."

Verrilli said the federal government has regularly launched programs aimed at giving large groups of immigrants temporary legal statusas part of its role establishing enforcement priorities due to limited resources.

Asked by Roberts if the government has the power to allow all immigrants who are in the country illegally to stay, Verrilli said: "Definitely not."

Shortly before theplanwas to take effect, a federal judge in Texas blocked it after the states filed suit. The New Orleans-based 5th U.S. CircuitCourtof Appeals upheld that decision in November.

RELATED:State rep.: I was 'ambushed' by immigration activists

Obama's executive action arose from frustration within the White House and the immigrant community about a lack of action in politically polarized Washington to address the statusof people living in the United States illegally.

He took the action after House of Representatives Republicans killed bipartisan legislation, called the biggest overhaul of U.S.immigrationlaws in decades and providing a path to citizenship for illegal immigrants, that was passed by the Senate in 2013.

Obama, stifled by Republican lawmakers on many of his major legislative initiatives, has drawn Republican ire with hisuse of executive action to get around Congress onimmigrationpolicy and other matters including gun control and healthcare.

Latest From ...