Drought, real estate hurt NSW budget