Thousands of officers from across the country gathered in New York City on Saturday to pay their respects to a murdered policeman.