Google and Facebook should fire any employees they have in the UK and then tell the UK to fuck off.
Also, Facebook and Google have regular severe problems with the government of China, whose economy about six times the size of the UK.
Sure, it would still be a drastic and childishly over-the-top response at this stage, but given the UK government essentially lobotomised itself a few years ago, it might happen anyway in more polite language.