Ministers have published legal arguments on the issue ahead of a hearing at the Court of Session in Edinburgh next month.