Brewers score 5 in 9th to end Cubs' 3-game streak