In an age when institutions seem disposable, the Democratic and Republican Parties are strangely durable.