New York’s climate law goes on trial