Do illegal immigrants have rights under the equal protection clause?

Yes illegal immigrants do have some rights under the equal protection clause, cf. Plyer v. Doe. That does not mean that illegal immigrants must be granted completely equal treatment. Race was the the immediate reason for passing the 14th Amendment, and thus racial disparities are given the highest scrutiny under equal protection analysis. Aliens, however, are not afforded such deference.