A massive strike by nurses at two major city hospitals was averted Sunday when their union reached a tentative new contract, but two of the biggest and busiest hospitals where a walkout still loomed were hastily postponing surgeries and transferring vulnerable newborns needing intensive care.