Righting the world through treaties: the changing nature and role of international agreements in the global order