Displaying Ten Commandments in class, whitewashing history and study of Bible verses drove many to vote blue