The effort in Albany follows on from New York City Council’s 2021 enactment that banned qualified immunity for city officers accused of excessive force.