NEW YORK (Reuters) - Diversified U.S. manufacturer 3M Co said it would buy Cogent Inc for $943 million, paying a nearly 18 percent premium for the maker of identification systems used to screen travelers at border crossings.