A remark attributed to President Donald Trump about Iran and two American cities has set off a wave of condemnation from California officials and media critics, who are pressing supporters to answer for it.