The legislative process is a constant test of Zohran Mamdani's principles versus pragmatism.