The Danish company is behind many of the UK’s offshore wind farms but has struggled with rising costs in other countries.