A federal judge has ruled that a town board in upstate New York isn't doing anything unconstitutional by opening its meetings with a brief prayer.