The US president is hurting rather than helping his ideological allies such as Nigel Farage.