A Los Angeles County judge ruled Monday that District Attorney George Gascón's policy to end sentencing enhancements in criminal cases violates California's three-strikes law.