Spanish lawmakers have passed a law ending all trade of arms, defence equipment, or technologies to Israel.