The vote means that the army looks set to continue carrying out public security duties until 2028.