Berkshire will invest $10 billion as Alphabet ramps AI and cloud spending.