Voting and transfer payments in a threshold public goods game