CHICAGO—On an overcast afternoon in May, the gymnasium of an oppressively beige school building on Chicago’s South Side was teeming with giddy students. Southside Occupational Academy was about a month out from the end of the school year and its 268 students were preparing for the school’s first farmers market.