After tense debate that included allegations of lying and large-scale eugenics, the House on Thursday passed a measure banning abortions meant to avoid having a baby of a particular gender or race and criminalized harm of the unborn in the act of harming or killing its mother.