UNITED NEWS INTERNATIONAL (UNI) — A judge in California ordered U.S. border authorities to reunite separated immigrant families within 30 days and within 14 days for children under the age of 5.

The ruling came after a lawsuit was filed by the American Civil Liberties Union.

The suit heard before U.S. District Judge Dana Sabraw out of San Diego involved a 7-year-old girl separated from her Congolese mother and a 14-year-old boy separated from his Brazilian mom.

Sabraw also prevented future separations by issuing a nationwide injunction against separating children. The only exception for separation would be cases where a parent was deemed unfit or dangerous.

So far, more than  2,300 immigrant children have been separated from their parents and placed in government custody.

President Donald Trump recently issued an executive order to stop the separation of immigrant families moving forward.