Apple sent out several emergency security updates Monday after researchers detected a flaw that allowed spyware to infect iPhones, Apple…