A federal judge has ruled it is unconstitutional to recite the Pledge of Allegiance in public schools.