The vote follows the tech giants' efforts over nearly a decade to diversify manufacturing into Vietnam, India, and the US.