Nurses at eight Providence hospitals reached a tentative contract agreement with the health system’s leaders late Tuesday, nearing a possible end to a strike that was in its 26th day.