Phillies benefit from horrible check swing call in win over Pirates