The chancellor has navigated a path to safety, but trouble lies ahead