Yobs who swear at police will still face arrest, a top officer has warned despite a judge's ruling that it is not a crime.