The U.S. Supreme Court on Tuesday struck down Florida’s death penalty law as unconstitutional for giving judges more power than juries in setting the sentence, requiring review by the state Supreme Court and Legislature.

The 8-1 decision by Justice Sonia Sotomayor could affect about 400 condemned inmates, the second-largest death row in the country after California. Florida executed two inmates last year.