That's what the US Supreme Court has said.
The Fourteenth Amendment incorporated the First Amendment to the states.
But that's not what the 1st amendment clearly says. REad it again: Congress (not judiciary) shall make no law... Repeat that over and over until you get it thru your head that judges CANNOT MAKE LAWS. Only Congress can establish a religion. Get it? A courthouse in backwater county is not Congress or a State legislature.