GRAPEVINE, Texas—The Boy Scouts of America decided to allow gay youth to openly join its ranks, reversing a long-standing ban.

The decision, which came after a vote Thursday of some 1,400 Scout leaders, had been seen as a litmus test for how much the nation has shifted its views on gay people and their role in society.

More than 61% of the...