Deal gives Whyalla 'clarity and stability'