Nearly one million civilians have fled from a Syrian government offensive against rebels in what could be one of the final chapters of the nine-year-old civil war.