Trump praised the Irish Prime Minister but spoke about the European Union as an opponent of the US that had been treating his country “unfairly” for decades.