But New York Republican Rep. Peter King rejected criticisms of pet projects, or earmarks.