SAN FRANCISCO — A man who illegally came to the United States two decades ago said he hopes a court ruling granting him a law license will open doors to millions of other immigrants in the same situation.
The California Supreme Court granted a license Thursday to Sergio Garcia, 36, in a unanimous decision.
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.
Garcia said he hoped the decision would serve as a "beacon of hope" to others in the same situation. He plans to be a personal injury attorney in his hometown of Chico.
It's the latest in a string of legal and legislative victories for people who are in the country without permission. Other successes include laws granting driver's licenses in some states and the creation of program that allows many young people to avoid deportation.
"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.
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 many 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. Garcia was too old to qualify for the program, which was geared to people under 31 as of June 2012.
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.
California Attorney General Kamala Harris supported Garcia's petition and applauded the ruling.
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.
Associated Press writer Elliot Spagat in San Diego contributed to this report.