South Dakota's law is the latest as pipeline companies encourage tougher penalties for activists who block oil and gas projects—and for the groups that support them.