You can send fleets to positions near friendly alliance comrade Space Stations to reinforce them. If their Space Station is then attacked, your fleets will automatically join the battle.