The U.S. Department of Justice opposed allowing him a license because as an undocumented person he wasn’t allowed to receive any benefits, Garcia said in a statement. Garcia said the Court agreed with the assessment, but also stated that a law could be passed to allow him and others in his situation to be granted a law license.

A law passed seven days later allowing courts to grant a law license to an undocumented person who had met all the standard requirements. Gov. Jerry Brown signed the the bill on Oct. 5, 2013.

The law went into effect on Jan. 1, 2014.

The Coalition for Humane Immigrant Rights of Los Angeles issued a statement after the ruling, saying the court's decision "bodes well for the future of the United States of America."

"The Dreams of many became much closer to becoming a reality today that the California Supreme Court ruled in favor of young professionals, like Sergio Garcia, who have met every requirement in the book to practice their craft but happen to be undocumented immigrants," the statement said.