SAN FRANCISCO (Reuters) - Apple Inc and its main contract manufacturing Foxconn agreed to tackle violations of conditions among the 1.2 million workers assembling iPhones and iPads in a landmark decision that could change the way Western companies do business in China.