How a president and a protest movement transformed the Democrats.