Legal certainty on retained EU law 'undermined'