Sergio Garcia, an immigrant brought to the US illegally as a child, will be able to practice law in California, a court ruled — giving hope that others like Garcia will be able to join professions. Photo: AP

SAN FRANCISCO — The California Supreme Court granted a law license Thursday to a man who has lived in the U.S. illegally for two decades, a ruling that advocates hope will open the door to millions of immigrants seeking to enter other professions such as medicine, accounting and teaching.

The unanimous decision means Sergio Garcia, who attended law school and passed the state bar exam while working in a grocery store and on farms, can begin practicing law immediately.

It’s the latest in a string of legal and legislative victories for people who are in the country without permission. Other successes include the creation of a path to citizenship for many young people and the granting of drivers licenses in some states.

“This is a bright new day in California history and bodes well for the future,” the Coalition for Humane Immigrant Rights of Los Angeles said in a statement.

The court sided with state officials in the case, which pitted them against the White House over a 1996 federal law that bars people who are in the U.S. illegally from receiving professional licenses from government agencies or with the use of public money, unless state lawmakers vote otherwise.

Bill Hing, a law professor at the University of San Francisco, said the court made clear the only reason it granted Garcia’s request is that California recently approved a law that specifically authorizes the state to give law licenses to immigrants who are here illegally.

The new law, inspired by Garcia’s situation, took effect Wednesday.

It was unclear how many people would qualify to practice law under the ruling and whether it would influence other states. Legislatures and governors in more conservative states such as Alabama and Arizona are likely to be less receptive to the idea.

Garcia, who plans to be a personal injury attorney in his hometown of Chico, said he hoped the decision would serve as a “beacon of hope” to others in the same situation.

He “can hang up a shingle and be his own company,” said Hing, who represented the state bar association in the case. “Once he does that, a client can retain him as a lawyer.”

But some questions remained unresolved, such as whether Garcia can appear in federal court or in other states. Federal law makes it illegal for law firms to hire him.

Chief Justice Tani Cantil-Sakauye, who wrote the opinion, said the new state law removed any barrier to Garcia’s quest for a license. And no other federal statute “purports to preclude a state from granting a license to practice law to an undocumented immigrant,” Cantil-Sakauye wrote.

Garcia, 36, arrived in the U.S. as a teenager to pick almonds with his father, who was a permanent legal resident. His father filed a petition in 1994 seeking an immigration visa for his son. It was accepted in 1995, but because of the backlog of visa applications from people from Mexico, Garcia has never received a visa number.

He applied for citizenship in 1994 and is still working toward that goal.

The U.S. Department of Justice argued that Garcia was barred from receiving his law license because the court’s entire budget comes from the public treasury, a violation of the federal mandate that no public money be used to grant licenses to people who are in the country without permission.

Assistant U.S. Attorney Daniel Tenney, who argued the case, did not immediately return a call seeking comment.

The Obama administration’s position in the case came as a surprise to some, since the White House has shielded from deportation people who were brought to the U.S. illegally as children, provided they also graduated from high school, kept a clean criminal record and met other conditions.

At a hearing in September, a majority of the state Supreme Court justices appeared reluctant to grant Garcia the license under current state and federal law, saying they were prohibited from doing so unless the Legislature acted.

Garcia worked in the fields and at a grocery store before attending community college. He then became a paralegal, went to law school and passed the bar exam on his first try. His effort to get licensed was supported by state bar officials and California’s attorney general, who argued that citizenship is not a requirement to receive a California law license.

Two other similar cases are pending in Florida and New York, and the Obama administration has made it clear it will oppose bar entry to immigrants unless each state passes its own laws allowing the practice, Hing said.

Nick Pacilio, a spokesman for Harris, said California’s success “has hinged on the hard work and self-sufficiency of immigrants like Sergio.”

Thursday’s decision is the latest example of changes in immigration policy happening at the state level while an effort to achieve a broad federal overhaul stalls in the House.

California and nine other states last year agreed to grant drivers licenses to people in the country illegally, bringing the total to 13 states, according to the National Conference of State Legislatures. Nevada and Maryland began taking applications this week.

Four states — Colorado, Minnesota, Oregon and New Jersey — last year offered in-state college tuition to residents who are here illegally, joining California and 10 others.