Evidence that quasars slow star formation