BOSTON—Political leaders and boosters gathered Friday to cheer the city’s selection as the U.S.’s bid for the 2024 Olympics, while acknowledging a long road ahead to sell the plan to the local community.

“Wow, can you believe it?” said Boston Mayor Martin Walsh, opening a news conference at a convention center on the waterfront. Mr. Walsh and…