At a congressional hearing, House Republicans accused the mayors of New York, Denver, Chicago and Boston of providing sanctuary to criminals and not fully cooperating with federal immigration efforts.