Alphabet has sold bonds worth $20 billion in a seven-part offering stretching out to 2066, tapping the debt market to fund its surging spending on artificial intelligence infrastructure.