Code linked to firm's Pegasus program found on devices belonging to members of 3 groups recently designated terrorist organizations by Israel in move that drew wide criticism