PHILADELPHIA (AP) — A federal judge on Friday threw out a lawsuit by Republican state lawmakers in Pennsylvania that sought to overturn a ban on gas drilling and hydraulic fracturing in the Delaware River basin, ruling they lacked standing to sue.

Senate Republicans led by Sens. Gene Yaw and Lisa Baker claimed the Delaware River Basin Commission overstepped its authority and usurped the Legislature with its moratorium on natural gas development near the river and its tributaries.

READ MORE: Crash Involving SEPTA Bus, 4 Vehicles In Philadelphia's Cobbs Creek Neighborhood

Judge Paul Diamond in Philadelphia ruled the GOP had no legal right to sue, writing the dispute “is primarily partisan and is best resolved through the political process.”

Diamond said the suit’s four municipal plaintiffs — Carbon and Wayne counties and Damascus and Dyberry Townships — also lacked standing, but gave them permission to refile the suit by July 1 to give them a chance to “articulate how the moratorium has actually injured them.”

READ MORE: Woman Facing Arson Charges After Allegedly Intentionally Setting Fire At Howard Johnson Hotel In Blackwood

The moratorium had been in place since 2010. In February, one month after the Republicans filed suit, the basin commission voted to permanently ban natural gas drilling and fracking near the Delaware, asserting that gas development poses an unacceptable risk.

The ban applies to the entire watershed but, practically speaking, impacts Wayne and Pike counties in Pennsylvania’s northeastern tip. Both are part of the nation’s largest gas field, the Marcellus Shale. Nearly 13,000 wells have been drilled elsewhere in the vast Marcellus formation, turning Pennsylvania into the nation’s No. 2 gas-producing state.

The commission oversees the water supply of more than 13 million people in four Northeastern states.

MORE NEWS: Taste With Tori: Wake Coffee Roasters' Unique Way Of Selling Coffee Makes All Extra Happy In Morning

(©Copyright 2021 by The Associated Press. All Rights Reserved.)