Apple reached a $490 million settlement on Friday over a class-action lawsuit brought by a group of investors who accused CEO Tim Cook of misleading them in 2018 about the company’s sales prospects, particularly by concealing the falling demand for iPhones in China.