Judge rules baby must be kept alive