Here "judge" is a metonym for what will happen after God makes the judgment. Alternate translation: "I will punish" (See: [[rc://en/ta/man/translate/figs-metonymy]])
The full meaning of this statement can be made explicit. Alternate translation: "that your descendants will serve" (See: [[rc://en/ta/man/translate/figs-explicit]])