Duke Energy has bought a majority stake in a US solar installer seeking to become "the one-stop shop" for commercial solar in the country.