A Virginia judge’s ruling can give precedent to future cases involving obtaining information from locked phones or devices.