New York lawmakers late Thursday voted to roll back portions of a sweeping legal immunity law given to nursing homes and hospitals.

The state Senate and Assembly passed a trim to the broad immunity law, which the Democrat-controlled chambers quietly passed this spring as New York faced the initial wave of coronavirus cases.