The stock market jumped Thursday as Microsoft powered a big AI rebound. Apple and Amazon led earnings late.