Assemblyman Todd D. Kaminsky, a Democrat, held a 780-vote edge in the race to succeed Dean G. Skelos in the State Senate.