Labour MP leaves Government role despite being found not to have broken the ministerial code