Kansas commits $304M to chip plant to lure federal funds