In a nearly 6,000-word essay, Gates argues that artificial intelligence poses a mounting threat to U.S. workers.