Trump attends wake of New York policeman shot on duty