A £167m fund will cover the losses of bus companies to keep essential services running for key workers.