New York’s attorney general sued the Trump administration Tuesday over one of its deals to end an offshore wind project.