Pay raises for the bench and other officials are a signature away now that both chambers of the New Jersey Legislature approved a measure boosting the salaries of the state’s justices, judges, cabinet officers and county prosecutors.

The Senate on Thursday voted 23-14 to approve the measure. Hours later, the Assembly passed the companion bill in a 45-23 vote. The votes were split along party lines, with Democrats voting in favor. The measure, in order to take effect, must be signed by Gov. Philip Murphy, a Democrat.