Nearly two centuries of data show that immigrants commit fewer crimes than US-born citizens, study finds.