The EU says a tough new disciplinary regime undermines judicial independence and violates European law.