The deal to develop a massive Foxconn plant in Wisconsin will be virtually complete Thursday when the state Legislature votes to approve a $3 billion incentive package to lure the Taiwan-based electronics giant to the state—the biggest state subsidy to a foreign company in U.S. history.