BROOKLYN, NEW YORK—Inside one of the massive brick-lined warehouses at the Brooklyn Navy Yard, more than a dozen teams laid out a rather odd display of food samples. Whether it’s a juicy meatball made from fungi, a batch of greens grown inside an ecosystem pod, or a wheel of mushy crust heated inside a gravity-defying…