Religion, morality, and knowledge, being necessary to good government and the happiness of mankind, schools and the means of education shall forever be encouraged
This is the same grammatical structure as the 2nd Amendment (X being necessary to Y, law Z). If we think that "well-regulated militia" ought to control your right to bear arms, then does "religion" and "morality" control what kinds of schools we can have?