Israel passed a law on Monday banning the U.N. Palestinian refugee agency UNRWA from operating in the country, legislation that could impact its work in war-torn Gaza.