The company did not learn until recently that its technology had meddled with sites for the Education Department, Commerce Department and the Securities and Exchange Commission.