I think ofgem will struggle in the court case, the government loses most judical challenges related to human rights and welfare. On top of this the basic claim of ofgem that its preventing profiteering is flawed if companies it regulates have increasing profits,Indeed, there should be no profit involved in essential services like these. British Gas have a 44% jump in profits due to rising prices.....
Even if profit were made it should go back into "levelling" up the country if it was nationalised.