A few points come to mind:
"They" is the tricky bit there. Presumably some people wanted a canal, and some people other people wanted jobs, and for that matter presumably some people wanted money to go to the construction company who've got an opening for a government liaison consultant coming up in five years time. There's little reason to think the equilibrium is welfare maximising.
Y'all know the rules: