Trump never questioned the judges ethnicity. He question his Mexcan heritage. Heritage is national origin not ethnicity.
From Merriem Webster.
Simple Definition of ethnic
: of or relating to races or large groups of people who have the same customs, religion, origin, etc.
: associated with or belonging to a particular race or group of people who have a culture that is different from the main culture of a country