A federal judge Thursday dismissed the criminal case against Boeing over two deadly crashes involving its 737 Max airplanes.