Harry Potter fans’ outcry meant the project to transport energy from the UK to Ireland had to be diverted