NY Democrats reach deal to strip Cuomo of emergency powers