Astros end Miami's winning streak with 3-2 victory