UK government publishes full Brexit legal advice