A project aimed at at saving threatened populations of wading birds in Ayrshire has picked up a major national award.