Jack Dorsey’s Block is cutting thousands of jobs as it shifts more work toward artificial intelligence, saying AI changes how a company is built and run.