I was able to pass the variable using update_option(). In my archive.php
I have the following code in my loop:
<?php update_option('featuredID', get_the_ID()); ?>
And then in my functions.php
file I am using the following code to get that ID:
$featuredPostID = get_option('featuredID');