The ending of Step Up 2: The Streets turns on Blake Collins, the school's director, watching his own students dance at The Streets and deciding that street dance counts as real art. He reinstates Andie at the Maryland School of the Arts, and the crew she built stays together as her supportive group of friends.
In my opinion, the final dance works because it gives the film's central argument a physical stage. For most of the story the school and the 410 treat each other as enemies, and Andie pays the price for standing between them. Look at the chain of events that leads there: Chase pranks Tuck, the 410 answer by attacking Chase and wrecking the school's dance studio, and Blake expels Andie for damage she did not cause. She takes the blame to protect the crew she built from outcast students, so by the time the fundraiser arrives she has already lost her place in both worlds. When the crew skips that event to compete, Blake has to see the other world in person, and it could be argued that this is the only way he could have changed his mind. A speech from Andie would not have done it, and the film wisely does not try one.
There is also a quieter point. Her reinstatement is not a reward for obedience, it is recognition that her roots belong in the school. The film points to Andie keeping both her street background and her formal training, which is a gentler resolution than a clean victory over the 410. Tuck, the leader of the 410, is the one who set the damage in motion, yet the story never needs him to be punished for the school to come round.
Production context supports that reading. Screen Daily credits Jon M. Chu with his feature directorial debut here, and names Jamal Sims, Dave Scott and Hi-Hat as the choreographers. Hi-Hat also appears on screen as the businesswoman on the subway, so the dance team is visible in the film itself. With three choreographers, the film can give the school's polished style and the 410's street style distinct vocabularies, which is what makes Blake's change of heart readable without dialogue. That is my reading of the film rather than a stated intention from the filmmakers.
Compare that with Step Up (2006), where Tyler is ordered to do community service as a janitor at the same school and the divide runs between him and a ballet student, Nora. There the two dancers adjust to each other. Here the institution itself has to change, which is a bigger ask and a more satisfying one. Chu then stayed on for Step Up 3D, where Moose, played again by Adam Sevani, moves from supporting player to lead, and the crew as family idea from this ending becomes the whole premise. Andie and Chase's story is not the last word on her either, because Briana Evigan returns as Andie in Step Up All In, and Step Up Revolution takes the crew formula to Miami. If you want to rank this scene against the series, the best Step Up dance scenes page has the full list.