SAN JUAN, P.R. — For an overburdened pediatrician trying to care for a child who was in pain, needed hip surgery, and was displaced from his home in the wake of Hurricane Maria, it seemed a godsend — a modern military hospital ship sent from its berth in Virginia to help with medical care in Puerto Rico.