A Danish pension fund has pledged to provide financing for a planned offshore wind farm in the US, the first public funding commitment to the project.