Go back to immigration, apply to get a visa, tell them you will bring home the baby and visa was rejected, show them the plane ticket and tell them baby was offloaded as they are looking for a visa reference. If they could give you a temporary visa.