Sentence:  States were free to enact , within broad though ( perhaps ) determinate limits , their own rules as to the application of foreign law by their courts , to vary the law merchant , and to enact <WSD>legislation</WSD> with regard to many claims arising on the high seas . 
Meaning of the word marked with <WSD> tags:  law enacted by a legislative body