Google announced plans on Wednesday to invest $15 billion in Malaysia over the next two years to build data centers and other infrastructure as demand booms for artificial intelligence services.