President Trump’s comments caused an uproar from members of both parties. A White House official said he was taken out of context.