A gross failure by midwives to provide basic medical care led to the death of a baby girl, a coroner has concluded.