ALBANY, N.Y. (CBSNewYork/AP) — Democrat Todd Kaminsky has officially won a close New York state Senate race on Long Island.

According to election results certified Monday, Kaminsky beat Republican Chris McGrath by 886 votes.

READ MORE: Christina Darling Arrested After Allegedly Spitting On Children In Brooklyn, Making Antisemitic Remarks

Kaminsky was ahead by 780 votes on election day two weeks ago, but McGrath refused to concede until all absentee votes were counted.

CAMPAIGN 2016: Full Coverage

Kaminsky, who was a member of the Assembly, will take the Senate seat left vacant by ex-GOP Senate Leader Dean Skelos, who was convicted last year of corruption.

READ MORE: Police: Good Samaritans Break Up Attempted Robbery In Chelsea, Suspects At Large

In the campaign leading up to the election, the former prosecutor based his platform on a government for the people, receiving an endorsement from President Barack Obama and former president Bill Clinton.

The win gives the Democrats a one-seat Senate majority, but Republicans are expected to maintain control at least until November, when every Senate seat is up for election.

Currently, the GOP leads the Senate thanks to support from six Democrats who broke with their party to empower Republicans.

MORE NEWS: Prayer Vigil Planned On First Birthday Of Baby Girl Shot In Bronx

(TM and © Copyright 2016 CBS Radio Inc. and its relevant subsidiaries. CBS RADIO and EYE Logo TM and Copyright 2016 CBS Broadcasting Inc. Used under license. All Rights Reserved. This material may not be published, broadcast, rewritten, or redistributed. The Associated Press contributed to this report.)