The Man Who Upset the Universe by Isaac Asimov. Original title Foundation and Empire, 4th book in the Foundation series, published in 1952.