Sci-fi movies have warned of technology taking over for decades. Now it may be happening, with many companies planning to cut their workforce.