State lawmakers passed a flurry of bills as they wrapped up the annual legislative session in Albany, greenlighting measures that would add new judicial seats and curb court officials' ability to force out older state judges.