The Arab Spring uprisings showed hard-line Islamists who had embraced violence a peaceful path to change.