Court rules Government's termination of BAE investigation unlawful