The state government will legislate to ensure the $4.2 billion reaped from the sale of NSW’s share of Snowy Hydro Scheme is spent only in the bush.