Lawmakers say Trump’s words matter — and hurt the country’s standing abroad