Alphabet, Google’s parent company, has reached a $3 trillion market capitalization for the first time, driven by AI-driven optimism and a favorable antitrust ruling.