The union representing 3,700 registered nurses at Stanford Health Care and Lucile Packard Children’s Hospital has reached tentative bargaining agreements with the hospitals, bringing an end to a contract impasse that the nurses had previously authorized a strike over.