Understanding Identity Politics and State Behavior