China’s Alibaba said it had agreed to pay $433.5 million to settle a U.S. class-action lawsuit filed by investors.