It took more than two years to craft, and much of that time was spent articulating a set of principles and devising mechanisms to encourage compliance acceptable both to human rights groups and to businesses.