Apple was exploring the launch of a feature that would let iPhone users buy and sell stocks, according to people familiar with the plans.