Two victories by environmental activists added to the uncertainty surrounding the industry and Canada’s oil sands.