Barrett spoke at program to inspire Christian worldview in law; critics fear influence of ‘dogma’