The patch fixed a flaw that could possibly allow spyware to secretly infect iPhones, iPads, watches and Mac computers. The spyware is called “Pegasus.” Apple is urging people to install the update.