The showrunner turned Homelander into Trump so this ending was just Eric's liberal murder fantasy of killing and humiliating Donald Trump.
All the left fantasizes about is killing their political opposition, it's the only logical conclusion to being a filthy communist.