The bill, like those in other states, comes amid a protest movement against oil pipelines, particularly the construction of new ones.