Almost 20,000 state workers will not receive pay raises for the more than two years they worked without contracts, but they also won’t have to pay back the state for covering health insurance premiums, under union contracts approved Wednesday by the Legislature.