Judge says corps should be reinstated in diversion lawsuit