An eventful ninth inning in the Padres’ 5-3 win over the Dodgers saw both benches empty and both managers ejected.