A Brooklyn appeals court on Wednesday announced its decision to grant a law license to an undocumented immigrant who was brought to the United States illegally when he was a child.

Cesar Vargas’ mother brought him from Mexico when he was 5. He went to college and law school at CUNY and passed the bar. A court committee recommended against his licensing but said the court should decide.

Vargas, an activist who pushes for changes to immigration laws, is eligible to work in the United States under the federal Deferred Action for Childhood Arrivals program that gives work status and defers deportation action for some undocumented immigrants.

In its decision, the appeals court said it found “no legal impediment or rational basis for withholding the privilege of practicing law in the state of New York from undocumented immigrants who have been granted DACA relief.”