Jose Altuve responded to jeering fans by marking his 31st birthday with a go-ahead, three-run homer off Chad Green in the eighth inning, and the Astros beat the Yankees 7-4 Thursday to avoid a three-game sweep.