A federal judge has ruled against the Kansas Highway Patrol, telling the agency to stop detaining drivers without reasonable suspicion.