Apple on Tuesday settled for $250 million a shareholder lawsuit brought after ​the company delayed artificial-intelligence upgrades to its Siri ‌voice assistant.