The drive to religious freedom in America was carried out overwhelmingly in the state legislatures—and the federal First Amendment had almost nothing to do with it.