The Scottish Government will publish legal advice it took in relation to a freedom of information request appeal after a ruling from the Information Commissioner