Dozens of Withernsea homes threatened by coastal erosion have been thrown a lifeline by a £3m grant from Europe.