The legislation is to insure freedom and peace for Israel. If peace and freedom is harmful to Israel's enemies than that's acceptable. No one wants to discriminate against non-Jews. The idea is to reward those loyal to Israel.
from the article: Another brick in Israel's apartheid wall