The raises would have cost New Jersey taxpayers more than $10 million a year, according to the nonpartisan Office of Legislative Services, at a time of deep budget cuts for hospitals, public-worker pensions and schools.