China’s government asked power grid companies to buy all the solar energy produced in their coverage areas, providing a possible boost to solar panel makers.