The funding deal between the state and Commonwealth ends an 18-month stand-off.