Senegal's parliament has approved revisions to a law passed under the former president that granted amnesty for offences committed during deadly opposition protests in the West African country.