A bill in the US state of Arizona that could restrict the sale of soft drinks in public schools has passed the committee stage, but only just.