After two months of head-to-head negotiations, a group headed by heirs of the former owners of the Los Angeles Dodgers, San Diego business and civic leader Ron Fowler and professional golfer Phil Mickelson finalized an agreement to buy the San Diego Padres on Monday night.