I generally agree that that freedom in the US is mostly seen as ‘my personal right to do anything I want’.
But that’s exactly what is being restricted here. An individual’s personal freedom to wear the hairstyle they want.
So how does that explain the restrictiveness of US schools?