Pay compensation for illegal trial: HC