Similar issue here appears to be solved.
Surface Pro 7, Surface Dock 2, USB-C to HDMI on 4k TV.
Extended monitors works perfectly when I use the USB-C port on the Surface to connect to the TV, but not through the display port on the dock,
I had Windows check for updates and installed until it displayed "Up to date"
Then installed the latest Dock 2 firmware for Surface Pro 7 here:
---- https://www.microsoft.com/en-us/download/details.aspx?id=101317
Unplugged everything, restarted, plugged dock charger and monitor back in and it looks like it worked.
Hope this helps