Spain's struggling solar-power sector has announced it will sue the government over two royal decrees that will reduce tariffs retroactively, claiming they will cause huge losses for the industry.