The immigrants, from 75 countries, stood and waved their American flags as the judge recognized their countries of origin.