SAN FRANCISCO — Apple and mobile chip maker Qualcomm have settled a bitter financial dispute centered on some of the technology that enables iPhones to connect to the internet. The surprise truce announced Tuesday came just as the former allies turned antagonists were facing off in a federal court trial that was supposed to unfold