The documents shed new light on the PRISM program revealed in leaked files from former National Security Agency contractor Edward Snowden.
The program allowed US intelligence services to sweep up massive amounts of data from major Internet firms including Yahoo and Google.
Bell said 1,500 pages of documents were ordered released by the Foreign Intelligence Surveillance Court in the case dating from 2007. He said that in 2007, the government "amended a key law to demand user information from online services."
Yahoo's court challenge failed and it was forced to hand over the data. The court records were kept sealed.
"At one point, the US government threatened the imposition of $250,000 in fines per day if we refused to comply," Bell said.
Since the Snowden leaks, Yahoo and others have been seeking to make public these court documents to show they were forced to comply with government requests and made numerous attempts to fight these efforts.
The opening of these court dockers to the public "is extremely rare," Bell said, adding that the company was in the process of making the 1,500 pages publicly available online.
"We consider this an important win for transparency, and hope that these records help promote informed discussion about the relationship between privacy, due process, and intelligence gathering," Bell added.
But he said that "despite the declassification and release, portions of the documents remain sealed and classified to this day, unknown even to our team."