The president has blended patriotic spectacle with campaign-style politics, reshaping a civic milestone around his leadership and worldview.