Brazil's bid to spur solar-energy projects is failing as a ban on state subsidies for foreign-made panel parts hinders sales by the world's biggest producers.