Shares of Seagate Technology PLC rallied in Tuesday’s extended session after the hard-drive maker posted better-than-expected earnings. Seagate reported its fiscal second-quarter earnings nearly doubled to $297 million, or $1 a share, from $165 million, or 55 cents a share, a year earlier.