Regarding Sri-Lanka, the ban on inorganic fertilizers and pesticides did not originate in the local government - it was result of long-term lobbying by environmental NGOs, most notably Vandana Shiva who was actually hired adviser of the government, and publicly celebrated the introduction of the ban:
https://navdanyainternational.org/sri-lankas-shift-towards-organic-farming/