A deal is welcome after talks nearly collapsed but the final agreement contains small steps rather than leaps