I am certain that God does not give you credit for giving to the poor by virtue of you voting for a politician who supports a government policy of taking money from people who have more money and giving it to the poor. You are only credited for what you actually personally sacrifice and personally give to a poor person you know. I am certain of this.
Robin Hood was a thief. So is a government that confiscates money from one person and gives it to a person who did not earn it. And as far as I am concerned, if you vote for such a politician or government, you are a thief too.