A seven-month-old infant may have to be removed from breathing support by doctors and allowed to die, a specialist family court has heard.