Matt Phillips hit a late winner as Blackpool beat Crystal Palace 1-0 in their Championship clash at Bloomfield Road.