Analysts say the contests will test President Trump’s influence in New Jersey following the removal of the county line ballot advantage.