A family court judge can appoint the mother of three children who had lived under the constant threat of gang violence in their native El Salvador as their guardian, the first step toward obtaining lawful permanent residence in the United States for the juveniles, a Brooklyn appellate court has ruled.

The Appellate Division, Second Department, rejected the finding of a Nassau County Family Court judge that the guardianship declaration was unnecessary. The woman and her children live together in Nassau County.