The ruling, from Justice Timothy S. Driscoll of the Supreme Court’s Commercial Division, was the first written decision by a New York state court to address COVID-19 coverage in an insurance dispute, an attorney for one of the defendants said Wednesday.