Although the mayor’s office has framed itself as the ultimate winner, the new plant will come at a hefty cost.