UK courts have had judicial independence since the Act of Settlement. Governments don't appoint judges - now via an independent panel since the Blair govt abolished the Lord Chancellor, but even then govts didn't have influence or appointing powers.
The courts quite often upset UK governments (of whichever party) when they strike down bad laws via judicial review, or by finding some aspect of government policy illegal.
The courts quite often upset UK governments (of whichever party) when they strike down bad laws via judicial review, or by finding some aspect of government policy illegal.