Labour vows to end legal 'gravy train'