when was the grandfather clause passed? was it a state or federal law?