Delaware has won a court victory over an onshore substation intended to bring offshore wind electricity to the state.