Former police captain Eric Adams, who first gained fame in the 1990s as a critic of the department he served, emerged into the national spotlight when he won a crowded Democratic primary for mayor of New York City.