A project to upgrade the Pajaro River levees and mitigate flooding has received $54 million in federal funding.