State reaches electricity deal with Hydro-Quebec