The chancellor warns on future spending decisions