Bolivia was the first nation to begin leaving a legal system that allows foreign companies to sue governments behind closed doors. Now, other countries are following.