German conservatives voted in favor of restoring compulsory military service to revive the army following Russia's invasion of Ukraine.