How Solidarity Works for Welfare