Gabriel Pec scored two goals late in the second half to rally the Los Angeles Galaxy to a 2-1 victory over Atlanta United on Saturday night.