A Delaware court has ruled in favor of the state, clearing the way for construction of a key electrical substation near the Indian River Power Plant tied to an offshore wind project planned for Ocean City.