Formula 1 has committed to holding the final two rounds of the 2026 world championship in the Middle East or not at all.