It may be legal in the UK to put a gag on media to prevent them from reporting on a court proceeding, but it doesn't make it right.
It's legal in Pakistan to execute apostates of Islam. That doesn't make it right.
Just because legal procedures are followed doesn't mean it's not abusing an individual's human rights.
The principles of freedom of speech and the press must be defended at all cost. Change the law and sequester the Jury, if you're afraid they'll be tainted by reporting.