Community transport bus services in Hampshire will keep some county council funding after it realised the move could stop children getting to school.