The legislation has been the subject of fierce debate between political factions within the European Parliament.