Far-right security minister’s departure will leave Netanyahu with a two-seat government majority