Walt Disney Co. agreed to acquire a one-third stake in the video-streaming unit of MLB Advanced Media, in a deal valued at about $3.5 billion, according to a person familiar with the matter.