North Carolina had to lay down big incentives to snag nearly 900 jobs for Durham. And the competition from Massachusetts was tough. Here’s how it played out.