A secret legal battle between the U.S. government and Yahoo over requests for customer data became so acrimonious in 2008 that the government wanted to charge the Internet company $250,000 a day if it didn’t comply.