Victory comes amid tumultuous scenes with lawmakers being held back from physical confrontation and after offering major concessions to party hardliners