Apple Inc. is planning to build a significant new business in original television shows and movies, according to people familiar with the matter, a move that could make it a bigger player in Hollywood and offset slowing sales of iPhones and iPads.