Google agrees to invest up to $2 billion in OpenAI rival Anthropic