The Bill & Melinda Gates Foundation will invest as much as $140 million in closely held Intarcia Therapeutics Inc. to develop a device that could help prevent HIV infections. The Gates Foundation will provide $50 million upfront for Intarcia to develop an anti-HIV therapy that uses its implanted device.