Just to be clear: UK Parliament is sovereign. If it passes a law forcibly legalising it, the privatised Royal Mail can sue the government but would need to find an international treaty obligation to win. Even then, if Parliament flagged it and said "we're ignoring this treaty in this case" then the courts are bound to the law, not treaty obligations.
If it has knock-on impacts in other areas, it's hard to say, but that's separate to the law.
They can try to protect it but anything inside the UK is subject to UK law and no other law. As I said, there may be practical concerns (read, consequences) for a course of action but this is separate to the domain of law.
Inside the UK, if a law explicitly counteracts, say, an international treaty, the British courts MUST find in favour of British law.
> anything inside the UK is subject to UK law and no other law
This is true in theory but not in practice. If you’ve been sanctioned by the US then you won’t by able to get a bank account in the UK. Even if you’ve not violated any UK law.
The Americans can give a British bank an ultimatum between dealing in US dollars and dealing with a particular individual. Every bank will always choose the former.
Similarly anything with US assets is subject to the US court system any its interpretation of copyright. Naturally this means US companies need to obey its rules.
But also given the reach of copyright law, so do foreign companies that interact with US ones. Visa, Mastercard, Google, FedEx, and Stripe can’t do business with someone who openly violates US copyright.
So perhaps a local council using self hosted services could use nationalised data but that’s about it.
You’re overthinking the issue. The laws not authored but enforced in the U.K. are done so with the express authority of Parliament. Treaty ratification is literally “passing an Act of Parliament that implements the treaty in U.K. law.” Parliament can also delegate legislation authority to other bodies. It can also revoke that authority (within the U.K.) either in part or in full.
This has actually happened on multiple occasions: Brexit being one that removed European institutions’ right to set rules that the U.K. must comply with. It’s also an example of where this isn’t free: the government agreed to a bunch of rules right back because cutting ourselves off from Europe would have obliterated the economy.
Article 1 of Protocol 1 of the ECHR covers exactly this, so the Supreme Court (and ECtHR if it came to that) would probably find in favour of Royal Mail if this were to be done without compensation.
If it were done by an Act of Parliament, no they wouldn’t. If that Act explicitly overrides external concerns, the Supreme Court must find in favour of the Act and the ECHR would have to find against it, which the UK Parliament is free to ignore, if it so chooses.
As I point out, this isn’t “free” because it can invite consequences from other parties. But that’s a different domain to law.
If it has knock-on impacts in other areas, it's hard to say, but that's separate to the law.