A £200 million project to protect Leeds from the risk of extreme flooding has been completed.