Amazon initially backed Anthropic in 2023. The move has reaped huge rewards for the cloud giant.