Theranos Inc. won a bid to exclude certain investors from a proposed Class of stock buyers bringing securities fraud claims against the health care technology company, with a California federal court issuing an order Wednesday limiting the class to indirect purchasers of the shares.