State and local investments in stadiums, land and youth programs have shaped the sport’s growth — and posed budget risks.