Public employee unions and state reach agreement