The Justice Department’s settlement of a criminal investigation of Google for allowing Canadian pharmacies to advertise drugs for distribution in the United States reflected an effort by prosecutors to extend the reach of federal drug laws. This may present future challenges to Internet search companies over their advertisements.