Pastors rip Obama over gay marriage