US legislator under fire for racist slur