The vote brings to an end a decade-long effort by the Maoists to replace the monarchy .