Parliament approves resignation of Abdul Mahdi's government after two months of protests that left more than 400 dead.