Amazon raised $25 billion through a bond sale as AI infrastructure spending accelerates, highlighting the growing cost of competing in the AI race.