George Brandis has been accused of misleading parliament over a directive to the commonwealth Solicitor-­General.