The PGA Tour and LIV Golf—the new Saudi-backed professional golf tour—have agreed to merge, ending a bitter rivalry after the competitors spent months marred in tense legal battles.