Barry has standing in that destruction of natural habitats in the area surrounding his hive has impacted his colony's ability to thrive. His colony is a victim of colonialism. If he can prove that his colony is descended from an earlier colony which cultivated plant life in the New York area that was deforested by humans, then he may be able to argue that his colony is owed a certain amount of land. Charging rent from the human businesses on that land so he can buy honey, Barry would be able to supply his colony with enough honey to get us to the end of the movie's plot.
It's a little more complicated than what we actually saw, but the logic is sound.
This is soulism