Deal comes almost a year after it bought Taiwanese Wistron’s iPhone factory