"We refused to comply with what we viewed as unconstitutional and overbroad surveillance and challenged the US government's authority," Bell said.
Yahoo's court challenge failed and it was forced to hand over the US user data.
"At one point, the US government threatened the imposition of $250,000 in fines per day if we refused to comply," Bell revealed.
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 them.
The opening of these court documents to the public is extremely rare, Bell said.
"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."
But he said portions of the documents remain sealed and classified.
The redacted court records, seen by AFP, showed Yahoo challenged the government on constitutional grounds, saying the surveillance program violated protections against unreasonable search and seizure.
- AAP