The famously liberal city has pivoted toward the center in recent years, but national progressive energy ahead of the midterms could challenge that shift.