Scarborough is set to receive a boost in its flood defences following an announcement of fresh government funding.