Voting, bargaining, and factor income distribution