A officials and Democratic lawmakers did not persuade judges that the subpoena issued by a GOP-controlled Senate committee had no legitimate legislative purpose.
A Commonwealth Court judge said that Fulton County must work out an agreed-upon set of rules for an inspection of voting machines used in the 2020 election.
The lawsuit from state Attorney General Josh Shapiro seeks to block the subpoena on the grounds that it serves no legitimate legislative purpose and stems from Trump's efforts to undermine trust in the results of the 2020 presidential election.
Democrats had said they would sue within days after the Republicans voted last week to seek detailed state election records for an audit they claim has nothing to do with Donald Trump.
The legal challenge is the latest attempt by Republicans to invalidate the 2019 law that Republican lawmakers almost unanimously supported.
The county said it had complied with the guidance in force at the time for the inspection of voting machines by third-party vendors.
With Election Day less than a week away, and delays persisting at the USPS, voters should drop off their mail-in ballots in person or vote early instead, according to elections experts.
Get exclusive Pennsylvania stories & news right in your inbox