Red Sox rally in 9th for 3-2 win over Rays