The fertilizer shortage that threw the agricultural sector into disarray and pushed food costs higher globally may be fading.