Kansas will pony up $304 million to get new chip factory