Lawyers deal blow to open government