Which is exactly how it violates the Constitution! The powers of the federal government, which includes the judiciary, are few and limited. The federal judiciary has no place to interfere in the states' ruling on these matters.
Judge Crabb ruled on April 15, 2010, that the “National Day of Prayer,” which was established by Congress in 1952, was unconstitutional.
http://judgepedia.org/Barbara_Crabb