Voter Preferences, Electoral Promises, and the Composition of Public Spending