A long-awaited scheme to safeguard Sidmouth seafront and protect the town from flooding has been given a £500,000 boost.