Oracle, Meta, Snap, and Block cut thousands of jobs to reallocate funds into artificial intelligence.