Program helps departments buy firefighting and ambulance equipment