Political scientist Seth Masket’s new book explains how history and party mechanics made Donald Trump’s ascent inevitable. The party may never recover.