What happens to the companions after the battle of whiterun?

Nothing. They stay in the game to be joined after the quest.