Why is evolution considered a fact?

A key component of evolution is spontaneous generation. If Pasteur refuted spontaneous generation in the 1800's, why is evolution considered a fact? ,