Walmart joins the $1 trillion club as AI push turns retail giant into a tech heavyweight