GOP gains in deep-blue New York’s governor race rattle Democrats