Any law eliminating anchor babies would immediately be struck down as a violation of the 14th Amendment. The only way to prevent the phenomenon is by amending the Constitution.
The same applies to the Definition of Marriage. Without a constitutional amendment, we’re at the mercy of activist courts.
I believe you’re correct and the fruitcake judge Walker overturning Prop 8 is a good example. His ruling might not stand but it shows the activist judges will stop at nothing on issues such as these.