The House, citing the nation’s religious origins, voted Wednesday to protect the Pledge of Allegiance from federal judges who might try to stop schoolchildren and others from reciting it because of the phrase “under God.”

The legislation, a priority of social conservatives, passed 260-167. It now goes to the Senate, where its future is uncertain.