The court said the measure, which required energy companies to pay $75 billion to the state, conflicted with federal law.