Protesters in New York City on Monday demand a statewide ban on fracking. This week, the New York State Court of Appeals ruled in favor of two towns that wanted to ban fracking. The ruling applies to local governments across the state. (Andrew Burton/Getty Images)

The multibillion-dollar Anschutz Exploration Corp., which helped make its founder, Philip Anschutz, one of the richest men in America, filed a lawsuit three years ago against Dryden, a small town in Upstate New York.

The issue: Dryden was sitting on top of some of the best shale gas prospects in the country, and Denver-based Anschutz had bought a substantial number of leases giving it the right to drill there. But in August of that year, Dryden — like many towns seeking to restrain the rush to drill for shale oil or gas — had banned the combination of hydraulic fracturing and horizontal drilling known as fracking. It did this by adopting new language for its zoning laws and by citing road-use regulations, noise limits and the need to protect 31 “critical environmental areas.”

This week, in a landmark decision closely watched by industry and local governments across the country, Dryden won. The New York State Court of Appeals ruled in favor of Dryden and another town, Middlefield, which had been sued separately over similar local ordinances.

While it applies to local governments across the state, the court’s 5-to-2 decision in favor of “home rule” by towns and counties will reverberate nationally as many other local governments fight to slow what has become a massive national shift toward natural gas production.

Protesters demand a statewide ban on hydraulic fracturing, a controversial technique for removing oil and natural gas from the earth also known as “fracking,” on June 30, 2014, in New York City. (Andrew Burton/Getty Images)

“This is simply a victory for local control,” said Dryden Town Board member Linda Lavine, a retired psychology professor. “It is a victory for liberals and conservatives of all sorts. It is what democracy is all about.”

There has been a wave of local resolutions, laws and proposals to ban or limit fracking and the disposal of fracking waste, including 35 in New Jersey, 13 in California, 10 in Colorado, 18 in Michigan and many more in Ohio, Pennsylvania and North Carolina, according to the activist group Food & Water Watch. Even the District has adopted a resolution urging a prohibition on fracking in the George Washington National Forest.

In the eyes of the oil and gas industry, though, putting the power to regulate fracking in local hands is bad for business and bad for U.S. energy policy. Shale gas drilling has unlocked vast reserves, and shale gas now accounts for about 40 percent of total U.S. natural gas production. Without it, companies would be lining up to import natural gas, not export it as many now want to do.

The New York decision — along with the overall issue of local resistance to fracking — also has broad political implications. In New York, it eases pressure on Gov. Andrew M. Cuomo (D) to take a position on fracking. Cuomo, widely believed to have national political ambitions, has avoided taking sides while sticking with a six-year-old “temporary” moratorium he inherited when he came into office in 2011. He has maintained the moratorium pending the outcome of a health study. That study probably will not be done until after his next gubernatorial election.

In Colorado, where Sen. Mark Udall (D) is in a tough reelection race that will hinge in part on a variety of energy issues, the New York decision is likely to encourage local foes of fracking. Udall has come under fire over the issue, with his opponent claiming the senator is not supportive enough of shale gas drilling.

Fifty-nine percent of voters in Longmont, Colo., cast ballots in favor of a ban on fracking and waste disposal, even though nationwide industry groups poured money into Longmont Taxpayers for Common Sense, which opposed the ban. Since then, four more Colorado towns have also banned or declared a long moratorium on fracking. Court challenges have been filed.

Udall, who appears to be seeking a middle ground, has said that some areas should be ­off-limits to shale drilling. But at a forum in May, he said, “It has risks, but it can be done safely. We can find a balance between protecting our land and air and water and have jobs,” according to the Denver Business Journal. On his Web site, Udall says, “As Coloradans, we want our country to be energy independent, but we don’t want to sacrifice our land, water and air.” He vowed to press for higher safety standards, but not to ban drilling.

And Colorado Gov. John Hickenlooper (D) — who has required the industry to disclose the fracking chemicals it uses and to take steps to minimize gas leaks — also opposes local fracking bans. Hickenlooper is seeking a special legislative session this summer to pass a compromise bill on the issue; if the bill fails, the fracking question is likely to be put on the ballot this fall for voters to decide.

Each state is different, however. The issue in the New York court case was whether towns such as Dryden and Middlefield, which includes part of the village of Cooperstown, have the right to limit oil and gas drilling through their local zoning laws or whether the state’s Oil, Gas and Solution Mining Law preempts the home-rule authority to regulate land use.

Dryden is part of Tompkins County, one of two New York counties where the Marcellus shale formation juts out from Pennsylvania, where oil and gas companies have drilled more than 13,000 wells using fracking techniques to unlock gas trapped in shale rock.

Industry sources say Chesapeake Energy, Anschutz and XTO Energy, now part of Exxon Mobil, had purchased lease holdings in the area, some as early as 2006.

But the 2011 activism in Dryden was followed by a landslide victory that fall by local council members who made the fracking ban a centerpiece of their campaigns. The town supervisor won nearly 60 percent of the vote.

“The voice of the people was actually very clear,” said Lavine, the Town Board member.

The State Court of Appeals ruling backs up the Dryden board, and it garnered support from both the liberal and conservative ends of the spectrum. Written by Judge Victoria A. Graffeo, who was appointed by Gov. George Pataki (R), the decision was joined by another Pataki appointee, Judge Susan Phillips Read. They were joined by Chief Judge Jonathan Lippman, who was appointed by Gov. David A. Paterson (D), and two Cuomo appointees, Judges Jenny Rivera and Sheila Abdus-Salaam.

“We do not lightly presume preemption where the preeminent power of a locality to regulate land use is at stake,” Graffeo wrote. “Rather, we will invalidate a zoning law only where there is a ‘clear expression of legislative intent to preempt local control over land use.’ ”

“At the heart of these cases,” she added, “lies the relationship between the State and its local government subdivisions, and their respective exercise of legislative power. These appeals are not about whether hydrofracking is beneficial or detrimental to the economy, environment or energy needs of New York, and we pass no judgment on its merits.”

Instead, she and the four judges who joined her said the language and history of the state oil and gas law did not show any intent to exercise its power to supersede local home rule.

Thomas S. West, an Albany-based attorney for Norse Energy, argued before the appeals court on June 3 that the towns had exceeded their authority, adding that a ruling in favor of the towns would “have a very chilling effect” and that it would be “very hard for operators to justify spending hundreds of millions of dollars to come in and not have regulatory certainty.” He vowed that the industry would go to the state legislature to get it to step in.

“Are we going to let 932 towns decide the energy policy of New York state?” asked Scott Kurkoski, an attorney for the owners of a dairy farm who had signed exploration leases in 2007.

Industry groups condemned this week’s decision.

“A regime where you essentially have local control of the process at the township level is a challenge and is more problematic for companies than if you had a statewide program,” said Frank Macchiarola, executive vice president for government affairs at America’s Natural Gas Alliance, an industry group. “The regulatory structure at the state level is substantially better for a number of reasons. One is the expertise brought to bear by the state department of environmental conservation versus the local or county council.”

Foes of fracking cheered the state court ruling. They asserted that the drilling would risk exposure to toxic substances and that it would destroy the rural and small-town atmosphere central to the identity of these communities.

One of those foes is Helen Slottje, a Boston commercial lawyer who moved to Ithaca because her husband, David, joined a family business there. In 2009, Slottje said, she attended a community meeting about gas drilling that horrified her. She has been providing New York state towns free legal advice ever since, urging them to use their right to regulate local land use. This year, Slottje was given the Goldman Prize for grass-roots environmental activism.

Slottje said the ruling would probably trigger more local bans on fracking because some towns previously did not want to risk the trouble and expense of going to court to fight the oil and gas industry. Many towns also feared that the industry would try to extract “just compensation” for existing leases, calling the local laws regulatory “takings” under the Fifth Amendment, something that Colorado lawyers say is still a concern there.

“The ruling is an unequivocal endorsement and reaffirmation of home rule for local towns in New York, including the right to entirely prohibit hydro-fracking in their towns,” Slottje said. “Which is a real victory for people and democracy and the rights of communities for how they want to live.”