Dirty Weyl semimetals: Stability, phase transition, and quantum criticality