But the cost to the state would be hefty: an estimated $334 million in the short term and over $200 million annually afterwards, according to a nonpartisan fiscal analysis.