The state is asking a court to reverse a Trump administration agreement and reinstate a planned offshore wind farm.