The state could be on the hook for hundreds of millions of dollars — and up to $1.6 billion — for plugging and remediating orphan wells.