The California Supreme Court granted a law license on Thursday to a man living in the United States illegally who graduated from law school and passed the state bar exam.
The decision means Sergio Garcia can begin practicing law despite his immigration status.
Garcia had challenged a 1996 federal law that bars people living in the country illegally from receiving professional licenses from government agencies or with the use of public funds, unless state lawmakers vote otherwise.
Shortly after the court heard arguments in the case, California Gov. Jerry Brown signed a state law that authorized the granting of the license. The new law went into effect Jan. 1.
Garcia arrived in the U.S. illegally 20 years ago to pick almonds with his father and worked at a grocery store and in the fields while attending school.
The case has pitted the Obama administration, which opposes licensing Garcia, against state officials who have supported him.