The rebel troops are a mystery. You see some guys at the bunker, but are there more?
And once the shield is down, certainly they receive reinforcements.
The Ewoks got the weapons from the rebels perhaps.
Don’t think you need any explanation other than “we are now part of the tribe”.
They team up.