California has become the first US state to ban ultra-processed foods in school meals, setting a precedent that could reshape national nutrition policy.