On what basis do they have jurisdiction?
Under Article III, federal courts have jurisdiction of cases "arising under this Constitution." A case arguing (rightly or wrongly) that a state law violates the 14th Amendment is a case "arising under" the Constitution.