Qualcomm Inc on Tuesday won a major victory in settling its wide-ranging legal dispute with Apple Inc, signing a six-year patent license deal and a supply agreement that could pave the way to getting its modem chips back in the iPhone, which featured only Intel Corp chips last year.