Google the "incorporation doctrine." Read. Understand.
I have long understood it. However, what I do not understand is how a prayer at a high school football game or teaching that there MIGHT be some other explanation to the origin of man other than the atheist approved one or allowing a menorah or Nativity scene on public land at Christmas time is "establishing a religion".