The kingdom wrangled OPEC ministers into a tougher-than-expected oil deal — a move critical for its own long-term plans.