The Treasury has warned government departments against offering more than they can afford next year.