The Knesset has approved legislation to ban the United Nations Relief and Works Agency for Palestinians (UNRWA) from operating in certain areas.