Avoiding jail time, a senior official turns state’s witness, offering information about ties between Mr. Netanyahu and an Israeli media tycoon.