A £1.8 million sea defence project to protect Lincolnshire homes, businesses and farmland from future flooding has been completed.