The Bahamas is to join a growing trend where countries promise better protection of precious ecosystems in return for having their debts reduced