From the internet and social media to surveillance states and algorithmic politics, these books imagined the future—and many of their “what ifs” became “right now.”