The plan , which Pataki has said is unconstitutional as written , would cost the state $ 5.1 billion over the next 30 years .