A general strike swept the West Bank after Israel passed a death penalty law that only targets Palestinians.