The answer comes from where the bus goes when it goes around them. The rules ban going around vehicles stopped before a railroad crossing by moving into the oncoming lane. If there is a free lane on the bus's side and the bus goes around the stopped vehicles in it, this ban does not apply. Going around stopped vehicles is not passing: only moving vehicles can be passed, so the ban on passing near a railroad crossing does not get in the way here either