Gov. Jim Justice said the deal was hammered out to give teachers the 5 percent pay raise they were asking for.