can they not just transfer passengers to other airlines
There just aren't the planes.
The only solution is to drop work that's less important. In this case, that should have been ticketing/seat allocation/baggage handling. They should have simply allowed anyone into the planes, and dealt with reconciling records of who flew and who paid later.
After their last major IT shitshow they didn't even inform passengers of their rights to compensation. Only when the authorities rapped hard on their nuckles the feebly mentioned something.
"Your flight is now operated by RyanAir on the original schedule. Expect an adjustment of price via the original method of payment". Or United.