Victoria police officers have accepted a revised wages deal, ending months-long negotiations with the government.