Laws are in title scope so no, it didn't work setting that modifier on laws. But it do now
I did test it not that long ago and the results of that testing is that most, if not all of the character modifiers are valid for titles. Given, most of my knowlege on CK2 modding is based off of observation since there is not much in the way of documentation.