Twenty states had challenged the end of the programme, meant to make localities more resilient to natural disasters.