Agreement brokered by UK and Ireland is set to end the Northern Ireland Assembly's longest suspension in 13 years.