Inequality and conflict in federations