About 500 migrant children who were separated from their parents at the US-Mexico border have been reunited with their families.