Rival parties reach agreement to normalize parliament after 42 day standstill