Astros send struggling Pirates to 4th loss in row