The federal judge criticized by Donald Trump for his rulings in two class actions brought over his defunct Trump University has sided with the Republican presumptive presidential nominee on a number of issues in both cases.

Trump, who was personally sued in both cases, has called U.S. District Judge Gonzalo Curiel “a very bad judge, very unfair” and has suggested that the judge’s Mexican heritage has made him biased given the candidate’s promise to build a wall along the border between the United States and Mexico. Curiel was born in Indiana.