Elon Musk made a daring offer to Apple that could have reshaped the future of iPhone connectivity. Tim Cook’s rejection sparked a rivalry that’s heating up with legal battles and technological clashes.