The number of Americans working in the solar power industry, which has soared since 2010, declined slightly in 2017.