Yahoo once again was under scrutiny after a report that at the behest of the U.S. government, its engineers had written software to scan every email message sent and received by its users.