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