The staggering total, up from $1.9 trillion at the start of the year, reflects Wall Street’s all-in bet on artificial intelligence.