It's not a religious thing - plenty of atheistic limousine liberals vote against their own self interest. Most scientists also vote D, even though voting R is the best way to increase scientific funding.
There are plenty of people in the bottom 47% (predominantly tax consumers) who vote R and in the top 53% (predominantly taxpayers) who vote D. Are they all doing it purely because of religion?
If you look around, you'll see lots of people voting for reasons other than self interest.
This particular issue exists purely because of the religion, which is still prevalent in the country.