Mamdani’s inauguration highlights a generational shift as Gen Z voters show growing openness to socialism.