The decision is a major victory for Menendez and the Democratic Party, which was facing the prospect of having the 12-year incumbent facing a corruption trial while running for what should be one of its safest Senate seats.