Israeli lawmakers have approved a bill to establish a special tribunal with powers to impose the death penalty over the October 7 attacks.