An activist in Montana was sentenced on Tuesday in a case that has become both a touchstone for industry-friendly legislators pushing to increase penalties for pipeline protest and a measure of the U.S. legal system’s ability to recognize the emergency presented by climate change.

On October 11, 2016, while the Dakota Access pipeline protests were in full force, climate activists approached above-ground valve sites on five tar sands pipelines in Minnesota, Montana, North Dakota, and Washington state. After calling the pipeline companies to give warning, they turned the valve wheels in a coordinated attempt to stop the flow of tar sands oil.

Tuesday’s sentencing hearing tested a Montana court’s willingness to apply the severe penalties already available for use against pipeline protesters. For halting the flow of oil through Enbridge’s Express pipeline for several hours, Leonard Higgins, a 66-year-old retired information technology manager for the state of Oregon, faced a maximum sentence of 10 years in prison and a $50,000 fine for charges of misdemeanor trespass and felony criminal mischief. Higgins was sentenced to three years’ probation and $3,755 in restitution to the pipeline company.

“I’m relieved and actually a bit bewildered. It’s unexpected to me. I came very much prepared and expecting to do some jail time at least,” Higgins told The Intercept. “This is a case where both in terms of the severity of the charges and the large amount of claimed damages, I think they were using it to chill the possibility that others might do similar protest.”

Enbridge had initially claimed more than $200,000 in losses, a figure later reduced to $25,630, including $16,000 worth of replacement chains to secure valves along the pipeline against future tampering.

“The courts and the juries are not hammering individuals in the way these corporations would like to see, so they attempt to use the restitution process to grossly inflate their damage numbers with hope that threatening the citizen with $200,000 might chill others from committing similar acts,” said Lauren Regan, Higgins’s attorney.

“Enbridge respects the court’s decision,” said company spokesperson Michael Barnes. “It is our intention to donate any court-ordered payment in this case to local area first responders. … We believe it’s important to support the people who every day focus on the safety and wellbeing of the community and the environment.”

Although the sentence is lenient in light of the possible penalties Higgins faced, it does not represent a full win for the activists. Higgins’s legal team had hoped Judge Daniel Boucher would allow them to argue that, given the severity of the climate threat, he had no choice but to act — a strategy known as a necessity defense. But Boucher said that since Higgins appeared to fear harm to his children and grandchildren, rather than an imminent threat to his own life, the defense could not apply. In his denial, Boucher wrote, “The energy policy of the United States is not on trial, nor will this court allow Higgins to attempt to put it on trial.”

Since a goal of the valve action was to set legal precedent for future climate protesters, Higgins’s legal team plans to appeal the denial, demanding a retrial. The move would not open the door to a more severe sentence. Judges assigned to valve turner cases in North Dakota and Washington also rejected the necessity defense, and the activists’ legal teams are also appealing.

The valve turners’ best chance lies in Minnesota, where a judge has made the unusual decision to allow the necessity defense to be used at trial. Emily Johnston and Annette Klapstein are facing felonies in the state for shutting down Enbridge Lines 4 and 67. Steve Liptay, who filmed their actions, and Ben Joldersma, who provided additional support, also face charges. The four activists have to prove that “the harm that would have resulted from obeying the law would have significantly exceeded the harm actually caused by breaking the law, there was no legal alternative to breaking the law, the defendant was in danger of imminent physical harm, and there was a direct causal connection between breaking the law and preventing the harm.” Enbridge is appealing the judge’s decision.

Higgins said that if he had any regret about his effort to disrupt the Montana pipeline, it would be that he failed to anticipate that those filming would face charges alongside those turning the valves. Reed Ingalls, a 23-year-old student at Evergreen College, who livestreamed Higgins’s action, still faces trespassing and criminal mischief charges. “I wish we had not been so naïve as to think the journalists and folks doing the livestreaming would be protected by the First Amendment and would not be arrested,” Higgins said. Sam Jessup, a 32-year-old carpenter from Vermont, recently received a suspended two-year sentence, to be served as probation, for livestreaming the valve action on the Keystone pipeline in North Dakota.

“The act itself was out of a sense of desperation that we don’t have time for incremental change,” Higgins told The Intercept. “It’s possible we already squandered the chance we had. We’re walking right along the edge of the cliff.”