It was also the second episode to tarnish a powerful lawyers ' movement that led months of protests against Musharraf , galvanizing his opponents and contributing to the defeat of his allies in the elections .