Trump tried to blame his predecessor for Iran’s attack this week on Iraqi bases housing American troops.