The collaboration will help boost demand for Elon Musk's space company, which has contracts with the Defense Department and NASA.