The UK's Home Office had sought to hold the legal battle with Apple entirely behind closed doors, but a judge disagreed.