Ryan Braun hit a ninth-inning homer for a 2-1 win