A judge was wrong in law to order the Government to hold a public inquiry into the murder of a senior gaelic games official during the Troubles, a court has heard.