The High Court was “misled” by false information from MI5 during the Attorney General’s bid to prevent the BBC from identifying a suspected Security Service informant, a judge has been told.