Speeding prosecutions under threat after High Court ruling